How do I change my iPhone App binary filename - iphone

I get the following error when I try to upload the application on iTunes Connect:
"Binary file names cannot contain a space. Please rename your binary file and try again."
If I try to Validate the Application in XCode, I get:
"My Application.ipa: filename may not contain whitespace"
So I guess I have to find a way to rename this .ipa file. I don't want to change my product name which has to stay "My Application". How can I do that?
Thanks!

This works very well (taken from here: http://developer.appcelerator.com/question/82971/filename-may-not-contain-whitespace-in-xcode-325-is-back):
1) In Xcode Organizer right click on the build date of the app and select "Reveal Archived App in Finder"
2) Open ArchiveInfo.plist in a text editor (i used Coda)
3) For me at line 12 it was creating the application with a space:
<key>XCApplicationName</key>
<string>Example Name</string>
Change that to ExampleName and save the file.
4) Once you get back to Xcode Organizer, you should be able to go through fine.

Since Xcode or the Application Loader is the only way to submit apps now, renaming the file before using the web interface isn't an option.
However, there is a workaround. From Xcode Organizer, choose Save to Disk, pick a file name without a space, and then use Application Loader (not the Xcode Organizer) to send the archive to Apple.

I ran into this and another issue when I wanted to submit an app with whitespace and a + in the name.
Application Loader did not work well for me - cryptic errors that required deleting the IPA and rebuilding.
My final solution was to set the PRODUCT_NAME to something sane, e.g. instead of My App+ it was MyAppPro. Then I set CFBundleDisplayName in Info.plist to the name I wanted, e.g. My App+.
This is in my opinion a better solution than renaming the IPA every time and using Application Loader.

I just had to rename the zip file before uploading it in the web interface. This is really silly...

Use Xcode 4.
The problem is solved in this version.

There's no need to change anything in XCode. Just rename the resulting .zip File from "My Application.zip" to "My_Application.zip". This does not affect your application name its just a way to bypass the Application Loader filename checks (which do not allow whitespaces in the uploaded zip filename).
My_Application.zip should be fine

I was able to use the Organizer, select Share, Save to disk. The went to the file and told Finder to open it with Application Loader v1.4. This is with XCode 3.2.5. I've previously used Application Loader to upload apps to the Mac app store.

Related

Build and Archive for TestFlight produces big question mark

I'm using TestFlight to get beta users to test my iPhone app. I've never done this before and so I'm a bit concerned with the process.
I've been following these steps to create my .ipa, but after step 3 I see lots of question marks in the organiser window (next to the name of my app to be specific). Should I be concerned. It seemed as if everything else worked.
Is your bundle display name set in the project info.plist file? Check that all values in info.plist are set correctly.
You mean like this one?
Nothing to worry, this happens when you don't provide an application Icon. Add a 57x57 png icon to your project and save it's name in the Project-Info.plist file for the key Icon File.

which files are need to create .ipa for my application which is done in xcode

I am creating a simple application in xcode
Now i need to create ipa for that file.
By google i found some info regarding this.
create a folder named Payload and copy the app file,Zip the fine and rename zip to .ipa.
But i have a doubt in the this path users/username/library/application support/iphone simulator/4.1/Applications
i found a folder named with random alphabets and numbers.
In that i found documents,library,tmp folders along with my application.app.
is i need to copy all the 3 folders into payload or just my application.app is enough.
And i did n't get my icon in over the .ipa.
How can i get it.
can any one pls help me.
Thank u in advance.
If you go to Build and Archive in Xcode, it will package your app into an .ipa for you.
When in Organizer, click on your app, then click on the Share... button, then choose Save to Disk...
Also, I wouldnt suggest manually creating your .ipa files.
Apart from using Build and Archive, you can also try dragging and dropping your .app file onto iTunes. Then when you do 'reveal in finder' for the app, you'd see the IPA.

Changing the .ipa file artwork of compiled iPhone application [duplicate]

I've got an iPhone app with icon file Icon.png.
This icon shows up properly when the app is on the phone itself, but it doesn't show up in the applications pane in iTunes.
What do I need to do to get it to show up properly?
The cleanest way to do this is described in the official Apple documentation, in a section called Publishing Applications for Testing. Below is the exact instructions given to you on that page:
The iTunes artwork your testers see should be your application’s icon. This artwork must be a 512 x 512 JPEG or PNG file named iTunesArtwork. Note that the file must not have an extension.
After generating the file of your application’s icon, follow these steps to add it to your application:
Open your project in Xcode.
In the Groups & Files list, select the Resources group.
Choose Project > Add to Project, navigate to your iTunesArtwork file, and click Add.
In the dialog that appears, select the ”Copy items” option and click Add.
Note that the PNG or JPEG file is just 'iTunesArtwork', with no suffix.
If you try to copy the file into the application bundle after you have built it, it will break the app signing, and you will get a verification error when trying to sync it to your device. Ensure that the artwork file is included in the "Copy Bundle Resources" folder, within your project's target in XCode (step 4, above).
Create a 512x512 png of your icon, name it "iTunesArtwork" (no extension, no quotes) and add it to your project under Resources. Then build.
More details here:
http://developer.apple.com/library/ios/#documentation/Xcode/Conceptual/ios_development_workflow/000-Introduction/introduction.html
In order to make it easier for those arriving at this post, here are the actual instructions (straight from the blog post linked from the accepted answer).
There has been some talk on twitter about how to create your own IPA file for your iPhone app, so I thought I would give the instructions that I have used to build an IPA before. Enjoy.
Create a folder on your desktop called “working”. Open that and create another folder inside of it called “Payload” (case-sensitive)
Move your iTunesArtwork file into the “working” folder and your .app into the Payload folder.
Open Terminal and run the following command: chmod -R 775 ~/Desktop/working/Payload
Go into your ProgName.app folder within Payload.
Double-click the Info.plist file. Make sure there is a item called: SignerIdentity with a value of: Apple iPhone OS Application Signing. If there is not, add it.
Zip it all up. Zip the iTunesArtwork and Payload folder. (So zip up what is inside of the working folder)
Rename the zip file to have the name you want, and the extension of ipa.
Double click to install with iTunes
Actually, it is possible to provide iTUnes icons for iPhone software released as ad-hoc. See this blog post for more information.
I'll just add my recent experience. I had fooled around trying to get my ad hoc app to show up in iTunes with an icon (strictly, iTunesArtwork). Finally, I was convinced I had followed the instructions to a 'T' but it still wouldn't show up in the grid view. However, my artwork was properly displayed in the Cover Flow view. I deleted and reinstalled my app from/to iTunes to no avail. Then I quit iTunes and restarted - and, voila! - my artwork was correct in all places. It appears there is some kind of caching that is not reset in Grid view.
If you see a black square instead of you icon in iTunes, be sure that file type of iTunesArtwork in Xcode isn't "image.png". If so, in the copy resource build phase, CopyPNGFile will crash the file which invalid save for iOS divices.
Open your project in Xcode.
Copy iTunesArtwork.png file into project folder.
Edit iTuneArtwork.png file and remove .png from iTunesArtwork.
Generate build.
You can see image on iTunes.
The application icon only shows up in iTunes if your app is distributed through the app store.
I assume you are asking about a developer or ad hoc build. Those get the default black "A" icon.

how to create binary of iphone application

On reading the iTunesConnect_DeveloperGuide.pdf, i came across the term binary. This is the paragraph found in the pdf:
To submit your application through iTunes Connect and get it posted on the
App Store successfully, make sure you have the following:
Application binary (includes 57px icon), large 512px icon for use on the App Store,
primary screenshot, contract information, export compliance information and applica-
tion metadata
It is also mentioned that the binary should be a zipped file.
Can anyone please explain what is a binary and how to create one?
Thanks
This is the method I found out. Please correct me if there is any mistake:
Find the file ending in ".app" in the Products folder of your application in Xcode.
Right-click on it and choose Show In Finder.
From there, right-click again and choose Compress.
The resulting zipped file is the binary of your iphone application.
In this case, what Apple really means is the complete Application Bundle. You create it by building your project with XCode for the iPhone OS target. Don't forget to sign it for App Store Distribution during the XCode build process, as described in Apple's iTunes Connect / Developer Pogram Portal documentation.
To submit an app update, just log on to iTunes Connect (itunesconnect.apple.com) and click on "Manage Applications". Click on the application you want to update. From there, there is the icon of the app and next to it, a button that says "Add Version". Click it, and from there just follow iTunes Connect's advice! If you submit a NEW application with the same name but a different version, it will just add a NEW application to the app store (if it doesn't give you an error)! Then, v1.0 and v1.1 will BOTH be available for download.

How can I make my ad hoc iPhone application's icon show up in iTunes?

I've got an iPhone app with icon file Icon.png.
This icon shows up properly when the app is on the phone itself, but it doesn't show up in the applications pane in iTunes.
What do I need to do to get it to show up properly?
The cleanest way to do this is described in the official Apple documentation, in a section called Publishing Applications for Testing. Below is the exact instructions given to you on that page:
The iTunes artwork your testers see should be your application’s icon. This artwork must be a 512 x 512 JPEG or PNG file named iTunesArtwork. Note that the file must not have an extension.
After generating the file of your application’s icon, follow these steps to add it to your application:
Open your project in Xcode.
In the Groups & Files list, select the Resources group.
Choose Project > Add to Project, navigate to your iTunesArtwork file, and click Add.
In the dialog that appears, select the ”Copy items” option and click Add.
Note that the PNG or JPEG file is just 'iTunesArtwork', with no suffix.
If you try to copy the file into the application bundle after you have built it, it will break the app signing, and you will get a verification error when trying to sync it to your device. Ensure that the artwork file is included in the "Copy Bundle Resources" folder, within your project's target in XCode (step 4, above).
Create a 512x512 png of your icon, name it "iTunesArtwork" (no extension, no quotes) and add it to your project under Resources. Then build.
More details here:
http://developer.apple.com/library/ios/#documentation/Xcode/Conceptual/ios_development_workflow/000-Introduction/introduction.html
In order to make it easier for those arriving at this post, here are the actual instructions (straight from the blog post linked from the accepted answer).
There has been some talk on twitter about how to create your own IPA file for your iPhone app, so I thought I would give the instructions that I have used to build an IPA before. Enjoy.
Create a folder on your desktop called “working”. Open that and create another folder inside of it called “Payload” (case-sensitive)
Move your iTunesArtwork file into the “working” folder and your .app into the Payload folder.
Open Terminal and run the following command: chmod -R 775 ~/Desktop/working/Payload
Go into your ProgName.app folder within Payload.
Double-click the Info.plist file. Make sure there is a item called: SignerIdentity with a value of: Apple iPhone OS Application Signing. If there is not, add it.
Zip it all up. Zip the iTunesArtwork and Payload folder. (So zip up what is inside of the working folder)
Rename the zip file to have the name you want, and the extension of ipa.
Double click to install with iTunes
Actually, it is possible to provide iTUnes icons for iPhone software released as ad-hoc. See this blog post for more information.
I'll just add my recent experience. I had fooled around trying to get my ad hoc app to show up in iTunes with an icon (strictly, iTunesArtwork). Finally, I was convinced I had followed the instructions to a 'T' but it still wouldn't show up in the grid view. However, my artwork was properly displayed in the Cover Flow view. I deleted and reinstalled my app from/to iTunes to no avail. Then I quit iTunes and restarted - and, voila! - my artwork was correct in all places. It appears there is some kind of caching that is not reset in Grid view.
If you see a black square instead of you icon in iTunes, be sure that file type of iTunesArtwork in Xcode isn't "image.png". If so, in the copy resource build phase, CopyPNGFile will crash the file which invalid save for iOS divices.
Open your project in Xcode.
Copy iTunesArtwork.png file into project folder.
Edit iTuneArtwork.png file and remove .png from iTunesArtwork.
Generate build.
You can see image on iTunes.
The application icon only shows up in iTunes if your app is distributed through the app store.
I assume you are asking about a developer or ad hoc build. Those get the default black "A" icon.