My iOS app has a + in its name. Bundle is invalid due to this. Need help resolving

…衆ロ難τιáo~ 提交于 2019-11-29 10:21:55
Eonil

You have to change ${PRODUCT_NAME} in Build Settings. And you have to set name for display at Bundle Display Name in Info.plist.

See here for more details: Bundle Name, Executable Name, Product Name...anything else?

double click the target and select the build settings tab.search for product name and change it to without + sign.as mentioned before, the bundle display name in info.plist can have the same name with + sign

Andres Jakobson

There are a few different ways to make this work but this seems like the easiest/fastest

  • First change the "Product Name", so that it does not contain any special characters - how to change Product Name
  • Next, I changed the "Bundle display name" (CFBundleDisplayName) and "Bundle name" (CFBundleName) in my Info.plist to be hardcoded to have the '+' in it rather than referencing the ${PRODUCT_NAME} variable.
  • If you have already created app and distribution profile in iTunesConnect then you should also change the "Bundle identifier" in Info.plist - hardcode it to whatever you entered in iTunesConnect rather than xxx.${PRODUCT_NAME:rfc1034identifier} variable (iTunesConnect bundle identifier is shown in an error message if you try to build an archive before changing it)
  • Finally, build your app and Apple should not complain about the character when you validate. Your app should still show up with the '+' sign on the homescreen when you run on a device because of the hardcoded bundle keys.

Clean your simulator and device

  • If building for iOS Simulator won't work after that ("error: failed to attach to process ID 0" message) then go to "IOS Simulator" menu bar and click "Reset Content and Settings…"
  • If running on your device doesn't work after that then delete the app from your iPhone/iPad and run it again

I left the Executable name as-is in the Info.plist because the ${EXECUTABLE_NAME} variable it references by default is comprised of the ${PRODUCT_NAME} and a couple of other variables that I did not want to mess with.

thanks to Nathan Welch who's answer was basis for this tutorial

You have to rebuild. You can't tamper with the bundle after it has been built.

1.This bundle is invalid : Make sure your using bundle id is available or deleted by some one and also open the distribution provision profile is created for app store status is valid or invalid.

2. ${EXECUTABLE_NAME} : please provide your app name with + in plist 

3. codesign failed with exit code 1 : see this link and do like http://stackoverflow.com/questions/4842717/iphone-codesign-object-file-format-invalid-or-unsuitable
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!