Nativescript: Internal Error after an Invalid Bundle

Created on 22 Nov 2016  路  5Comments  路  Source: NativeScript/NativeScript

Hi,

I received an mail from Apple saying :
Invalid Bundle - A nested bundle contains simulator platform listed in CFBundleSupportedPlatforms Info.plist key

I've tried to follow this : https://github.com/telerik/nativescript-ui-samples/issues/123 but since this moment, I get an Internal Error when I want to publish again.

So, this is my 2 files that I modified :
capture d ecran 2016-11-22 a 22 47 14
capture d ecran 2016-11-22 a 22 46 58

And this is the Internal error :
capture d ecran 2016-11-22 a 22 46 28

I've tried to restore like before my files but I get the same error.
I follow this way :
1) Modify my files
2) tns build ios
3) tns publish ios MyItunesAccount MyPassword
4) I get the error

It's my first time I deploy an app on the store. I've tried to modify the version of my build (because I already have an incorrect version on my Itunes Connect but I don't think I have to change that for the moment ? :
capture d ecran 2016-11-22 a 22 47 57
)

This is my differents versions :
node.js version : v5.9.0
xCode version: v8.1
OS : OS X El Capitan v10.11.6
NativeScript CLI version : 2.4.0
TNS version : 2.4.0

Thanks in advance

ios question

Most helpful comment

For anyone who get the same error, just replace this :
<key>CFBundleSupportedPlatforms</key> <array> <string>iPhoneSimulator</string> </array>

with this

<key>CFBundleSupportedPlatforms</key> <array> <string>iPhoneOS</string> </array>

in all Info.plist of your framework !

All 5 comments

For anyone who get the same error, just replace this :
<key>CFBundleSupportedPlatforms</key> <array> <string>iPhoneSimulator</string> </array>

with this

<key>CFBundleSupportedPlatforms</key> <array> <string>iPhoneOS</string> </array>

in all Info.plist of your framework !

Hey @shinzao - congrats on successfully managing the issue - I've noticed just seconds after I have posted the information - will leave it here as a source for the community

With the nex xCode some changes were introduced by Apple in the publishing process.
I;ve researched your error and I think it is closely related to the one logged here and also discussed in the Apple developers forums here.

Basically in some of your inflo.plist files you have the following key (which is no longer accepted by Apple for release)

<key>CFBundleSupportedPlatforms</key>
<array>
<string>iPhoneSimulator</string>
</array>

Change the value to <string>iPhoneOS</string> and you should be able to resubmit your app succsessfully.As mentined in the logged thread where the issue is discussed the possible files you should be looking for are:

  • ./lib/iOS/TelerikAppFeedback.framework/Info.plist
  • ./lib/iOS/TelerikUI.framework/Info.plist
  • ./lib/iOS/TNSWidgets.framework/Info.plist

@NickIliev I have the same issue and I was using the workaround you mentioned, modify the ./lib/iOS files but since NS 2.5 that folder is gone or not auto-generated and I can't find those files any more, any advice?

Just for the record, the issue was the nativescript-telerik-ui-pro, it was version 1.4.*, it had to be 1.6.1 for NS 2.5.1

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

NickIliev picture NickIliev  路  3Comments

yclau picture yclau  路  3Comments

valentinstoychev picture valentinstoychev  路  3Comments

pocesar picture pocesar  路  3Comments

OscarLopezArnaiz picture OscarLopezArnaiz  路  3Comments