My iOS app has the name +. Because of this, the bundle is invalid. Need help resolving

I found a couple of very similar or identical topics, but they seemed to end until full resolution.

My application works fine on my device without a build error. I try to send the application for approval and I get the following error: "This package is not valid. The name of the executable that CFBundleExecutable reports in the info.plist file may not contain any of these characters ..... +". So I opened my info.plist file and changed the executable file name of the info.plist file from the macro $ {EXECUTABLE_NAME} to the name of my application without +. I made a new archive, but then I received the error message "with code with exit code 1".

In another thread, I read just changing the name of the target, deleting + from it, and leaving the info.plist file with the macro for the executable name, restarting Xcode, and then archiving again. This allowed me to archive, but I got the same error in iTunes Connect.

I have been working on this all day and cannot find a solution. Can someone point me in the right direction? Thanks for any help.

+6
source share
5 answers

You must change ${PRODUCT_NAME} in the build settings. And you must set the name to display in the Bundle Display Name in Info.plist .

See here for more details: Package name, executable name, product name ... anything else?

+8
source

double-click the target and select the assembly settings tab. Find the product name and change it to unsigned +. The previously mentioned package display name in the info.plist file may have the same name with a +

+1
source

There are several different ways to make this work, but it seems like the easiest / fastest

  • First change the " Product Name " so that it does not contain any special characters - how to change the name of the product
  • Then I changed the " Bundle Display Name " (CFBundleDisplayName) and the " Bundle name " (CFBundleName) in my Info.plist to be hard-coded, + ', rather than referring to the variable $ {PRODUCT_NAME}.
  • If you have already created an application and distribution profile in iTunesConnect, you must also change the " package ID " in Info.plist - specify it in what you entered in iTunesConnect, and not in xxx. $ {PRODUCT_NAME: rfc1034identifier} (the iTunesConnect package identifier appears in the error message if you try to create an archive before modifying it).
  • Finally, create an application, and Apple should not complain about the character when you check it. Your application should appear on the โ€œ+โ€ icon on the main screen when launched on the device due to hard-coded package keys.

Clean your simulator and device

  • If for iOS Simulator will not work after that (error message: could not connect to process ID 0), go to the "IOS Simulator" menu bar and click "Reset Content and Settings ..."
  • If the operation on your device does not work after that, uninstall the application from your iPhone / iPad and start it again.

I left the as-is executable in Info.plist because the variable $ {EXECUTABLE_NAME}, which it refers to by default, consists of $ {PRODUCT_NAME} and several other variables that I did not want to communicate with.

thanks to Nathan Welch, who was responsible for the basis of this tutorial

+1
source

You need to rebuild. Once it has been built, you cannot interfere with the package.

0
source
 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 
0
source

Source: https://habr.com/ru/post/902425/


All Articles