iOS Unable to read property list from file

Discussion in 'GameMaker Studio 2 Community Tech Support' started by WWAZman, Aug 21, 2019.

  1. WWAZman

    WWAZman Member

    Joined:
    Jun 21, 2016
    Posts:
    103
    hi.. new to iMac/Ios (publishing to ios / iphone)

    ran fine on test, everything broke when I took out the old gms 1.4 Google Play extension that was using admob sdk 6.8, and installed the newer Google Play services extension. Now upon running a test to try to get test ads working, I get the following:

    Code:
    error: unable to read property list from file: /Users/****/GameMakerStudio2/iOS/GMS2IOS/My_Bubble_Pop/My_Bubble_Pop/My_Bubble_Pop/Supporting Files/My_Bubble_Pop-Info.plist: The operation couldn’t be completed. (XCBUtil.PropertyListConversionError error 1.)
    also above that is more code:
    Code:
    ProcessInfoPlistFile /Users/****/Library/Developer/Xcode/DerivedData/My_Bubble_Pop-dolgpeppsekekpedklcrmrxngapk/Build/Products/Debug-iphoneos/My_Bubble_Pop.app/Info.plist /Users/****/GameMakerStudio2/iOS/GMS2IOS/My_Bubble_Pop/My_Bubble_Pop/My_Bubble_Pop/Supporting\ Files/My_Bubble_Pop-Info.plist (in target: My_Bubble_Pop)
        cd /Users/****/GameMakerStudio2/iOS/GMS2IOS/My_Bubble_Pop/My_Bubble_Pop
        builtin-infoPlistUtility /Users/****/GameMakerStudio2/iOS/GMS2IOS/My_Bubble_Pop/My_Bubble_Pop/My_Bubble_Pop/Supporting\ Files/My_Bubble_Pop-Info.plist -producttype com.apple.product-type.application -genpkginfo /Users/****/Library/Developer/Xcode/DerivedData/My_Bubble_Pop-dolgpeppsekekpedklcrmrxngapk/Build/Products/Debug-iphoneos/My_Bubble_Pop.app/PkgInfo -expandbuildsettings -format binary -platform iphoneos -additionalcontentfile /Users/****/Library/Developer/Xcode/DerivedData/My_Bubble_Pop-dolgpeppsekekpedklcrmrxngapk/Build/Intermediates.noindex/My_Bubble_Pop.build/Debug-iphoneos/My_Bubble_Pop.build/MainWindow-iPhone-PartialInfo.plist -additionalcontentfile /Users/****/Library/Developer/Xcode/DerivedData/My_Bubble_Pop-dolgpeppsekekpedklcrmrxngapk/Build/Intermediates.noindex/My_Bubble_Pop.build/Debug-iphoneos/My_Bubble_Pop.build/MainWindow-PartialInfo.plist -additionalcontentfile /Users/****/Library/Developer/Xcode/DerivedData/My_Bubble_Pop-dolgpeppsekekpedklcrmrxngapk/Build/Intermediates.noindex/My_Bubble_Pop.build/Debug-iphoneos/My_Bubble_Pop.build/OverlayViewController-PartialInfo.plist -additionalcontentfile /Users/****/Library/Developer/Xcode/DerivedData/My_Bubble_Pop-dolgpeppsekekpedklcrmrxngapk/Build/Intermediates.noindex/My_Bubble_Pop.build/Debug-iphoneos/My_Bubble_Pop.build/LaunchScreen-PartialInfo.plist -additionalcontentfile /Users/****/Library/Developer/Xcode/DerivedData/My_Bubble_Pop-dolgpeppsekekpedklcrmrxngapk/Build/Intermediates.noindex/My_Bubble_Pop.build/Debug-iphoneos/My_Bubble_Pop.build/assetcatalog_generated_info.plist -requiredArchitecture arm64 -o /Users/****/Library/Developer/Xcode/DerivedData/My_Bubble_Pop-dolgpeppsekekpedklcrmrxngapk/Build/Products/Debug-iphoneos/My_Bubble_Pop.app/Info.plist
     
    Last edited: Aug 21, 2019
  2. Nocturne

    Nocturne Friendly Tyrant Forum Staff Admin

    Joined:
    Apr 13, 2016
    Posts:
    6,869
    Okay, so, are you using BOTH the Services and AdMob? If this is iOS then I imagine it's only the AdMob part you want, in which case make sure that you have disabled exporting the rest of the extension in the extension properties before building. You can do this from the section shown here:

    upload_2019-8-21_8-40-58.png

    Alternatively, if you have a separate build for iOS, remove everything that you don't need by deleting it from the main Extension window. This would be in the Resources > Files section of the main window on the left above. You should see the two sections for Services and AdMob, so simply right-click and delete on the services part.
     
    WWAZman likes this.
  3. WWAZman

    WWAZman Member

    Joined:
    Jun 21, 2016
    Posts:
    103
    thanks Nocturne

    still unable to proceed, same error (I believe) .. yanked all extensions, yanked Kakuva's admob scripts, etc.. put back in the google play extension, removed things just as you said, including yanking the part of the extension dealing with Play services.. then I had to clean up extra objects (by deleting them) that referenced the Play services.. still that damn plist error.

    I then tested to see if the game worked at all anymore or if it's completely borked.. I //'d everything out and ran it.. and lo and behold, it still works.

    so something in the Google Play extension is breaking the plist info on Macs.

    whatever happened to the good old handy admob extension? I've paid for Kaguva's but am waiting for him to respond with help how to make your old script work.

    your old script:
    Code:
    //    GoogleMobileAds_Init("ca-app-pub-0852665160526406"); // android
    
    
    //////////  GoogleMobileAds_Init("ca-app-pub-0852665160526406"); // ios
    
    
    //    global.bannerId = "ca-app-pub-0852665160526406/9825836727"; // android
    
     // global.bannerId = "ca-app-pub-0852665160526406/8716632690"; // ios
       
    //////////    global.bannerId = "ca-app-pub-3940256099942544/2934735716"; //IOS TEST ADS
    
     
    ////////////// alarm[0] = 45;
     
     
    ////Alarm 0
    // GoogleMobileAds_AddBannerAt(global.bannerId, GoogleMobileAds_Banner, 0, 0); // nocturne's older code, worked
    
    
    ////////////// GoogleMobileAds_AddBannerAt(global.bannerId, GoogleMobileAds_Banner, 0, 0);
    
    ////////////// alarm[0] = 45;
    Code:
    error: unable to read property list from file: /Users/****/GameMakerStudio2/iOS/GMS2IOS/My_Bubble_Pop/My_Bubble_Pop/My_Bubble_Pop/Supporting Files/My_Bubble_Pop-Info.plist: The operation couldn’t be completed. (XCBUtil.PropertyListConversionError error 1.)

    *Interestingly*.. I left the above code commented OUT.. reinserted the google play extension, etc etc etc,.. ran it and it came up with the same plist error even though it's not calling it?
     
    Last edited: Aug 21, 2019
  4. WWAZman

    WWAZman Member

    Joined:
    Jun 21, 2016
    Posts:
    103
    ok so I JUST got it to work using Kaguva's code after realizing his admob_init was for interstitials (bonk!) and he has a different line for initializing the code.

    so I have this now and I just tested it and by golly it WORKS!! however the spacing is off a little?

    Code:
    //    GoogleMobileAds_Init("ca-app-pub-0852665160526406"); // android
    
    
     /////////////GoogleMobileAds_Init("ca-app-pub-0852665160526406"); // ios - nocturne's code
     Admob_initialize("ca-app-pub-0852665160526406");
    
    
    //    global.bannerId = "ca-app-pub-0852665160526406/9825836727"; // android
    
     global.bannerId = "ca-app-pub-0852665160526406/8716632690"; // ios
        
    //    global.bannerId = "ca-app-pub-3940256099942544/2934735716"; //IOS TEST ADS
    
     
    alarm[0] = 45;
     
     
    ////Alarm 0
    // GoogleMobileAds_AddBannerAt(global.bannerId, GoogleMobileAds_Banner, 0, 0); // nocturne's older code, worked
    
    
     GoogleMobileAds_AddBannerAt(global.bannerId, "ca-app-pub-0852665160526406/8716632690", 0, 0);
    
    alarm[0] = 45;
    any ideas how I can make DARN SURE it's in the top left corner?
     
    Nocturne likes this.
  5. Nocturne

    Nocturne Friendly Tyrant Forum Staff Admin

    Joined:
    Apr 13, 2016
    Posts:
    6,869
    Where is it being placed at the moment if it's not in the 0,0 position of the display?
     
  6. WWAZman

    WWAZman Member

    Joined:
    Jun 21, 2016
    Posts:
    103
    According to the code is supposed to be a 0, 0 but it's slightly off
     

    Attached Files:

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice