Understanding iOS Crash Report via Test Flight - iphone

I have begun testing my app via Test Flight and from time to time I get I receive this error: _sigtramp + 42. It only occurs at application launch and so far only on iOS 6.0. Has anyone else ran into this or can you help me located what is going wrong?

Try adding a .dsym file to your testflight build so that it can symbolicate the debug log.
Go to xcode's organizer
Select the Archives tab
Right click on the archive you used to upload the build to testflight
Select "Show in finder"
Right click on the .xarchive file and select "Show package contents"
Go to the dSYMs folder
Right click the .dSYM file and compress the file (zip it)
Drop that zip file into testflight under the Crashes tab where it says "Drop dSYM here"
Refresh the page, and hopefully the debug information will give you some more information as to what's happening.

Related

How to Install .ipa file into my iphone

Created .ipa file with Xcode 6, which I'm trying to install in my iPhone with iTunes. After saying it was "installing" nothing seems to have happened.
I waited for quite a long time, but it never progressed past that point. I followed all the steps correctly, so I don't know what could be happening.
This may be the case when there is some issue in profile. But anyway you can try by dragging .app file on itunes & then try to install on device by the procedure you are following.
Means dont create .ipa by xcode, just right click on the first entry from Organizer and then select 'show in finder', then again right click on xcode archive file & click on 'show package contents'. Then select .app file from Products -> applications. And drag & drop this .app file on itunes and then try to install.
May be this will help.

release an iphone application

i try to generate a nameproject.app after the build/Release.the build has succeed but i didn't find the file nameproject.app under product !! (it seems to be availble but the option "show in Finder" is disabled ) . My question is how to generate nameproject.app?
You will need to Build and Archive your project. You may need to check what code signing settings you have in the project and executable.
Use the Organiser to select your archive version and then you can Share that version of your project. You will need to select the correct code signing again. It will allow you to save the .ipa file where you want.
Drag and drop the .ipa file into iTunes and then sync with your iPhone.
Here are some more detailed instructions including screenshots;
Here are some more detailed instructions
Click on: Product - Archive (You must select IOS devices into active scheme and you not select IOS Simulator scheme).
When the run is terminated it's open the organizer view.
Right click on your app - Show in finder.
Right click on your archive into finder - Show package content - Products - Applications and here you find your file.app

Distribution build - "No such file or directory exists"

While creating an ad-hoc build in Xcode 4, I get an error "Operation couldn't be completed. No such file or direcotry exist" when I select Share in "Organizer - Archive" window. I have also included Entitlements.plist file, even status message also displays the build is successful.
I don't know what the problem is and where am I going wrong. Please suggest.
After downloading XCode 4.3 beta with the IOS 5 SDK, the Organizer function to share and archive stopped working with a cryptic error "No such file or directory found".
It turns out that this is related to having two different versions of codesign_allocate . To fix the problem, do the following in a terminal window.
sudo ln -s /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/codesign_allocate /usr/bin
I've put this on my blog http://blog.dmahajan.net as well.
Did you sign the archived version with your Ad-Hoc profile, if so then select "don't Re-sign" in the share screen drop down.
Guys,
Another thing I found is that if you've developed an app in xcode < xcode4 and you are creating builds in xcode4 then you might get this error.
To resolve this, follow these steps-
1. In Entitlements.plist, add a key- "application-identifier", type- "String", value - "$(AppIdentifierPrefix)$(CFBundleIdentifier)"
Now create an "Archive" build, when the window appears, right click on the app name and "Show in finder".
AppName -> Right Click -> Show Package Contents.
Products -> .app file. Now use this .app file along with the provisioning profile.
This solution worked for me very well.
Another possibility: duplicated keys in your keychain. Solved my problem.

Can iPhone Application Archives be exported and imported on another Computer?

I have an iPhone application that is not yet released but I wanted to make sure that when I create an Archive that I can symbolicate crash reports. For now that works on the Computer that created the archive / IPA.
But in order to be sure that I can symbolicate crash reports on another box or by another user I wanted to figure out how an Archive can be exported and be imported on another computer. As of now I can find the ".xcarchive" directory but when I put this on another computer and double click it then it says The archive could not be installed and "The archive may be corrupt or unreadable".
If I put the file manually at the right place it will be listed in XCode's Organizer but my crash reports are not symbolicated.
Any ideas what I do wrong or is there a way to do something with the .dSYM file.
Alan was right but it did not help me right away. After trying to use "symbolicatecrash" I figured out that there was something wrong with XCode 3 and 4. This script was unable to do it's job because it was using the wrong otool and atos program.
So I went ahead and installed the entire development environment on a Mac that had no previous XCode installation. After some dealing with some Certificate issues I was finally able to build, distribute and symbolicate a crash report.
After that I could ZIP up the archive (right click on the Archive and use "Show in Finder" to find its location) and then copy that in the Archive directory of another computer and voila this crash report was symbolicated there as well.
After archiving a build, click 'Share...' in the Organizer for that build. Then, click 'Save to Disk'. That .ipa (assuming it is made with the right provisioning profile/distribution profile) will be portable to any device (and crash reports will symbolicate as normal too).
If users send reports unsymbolicated (uh, is that a word), you can always follow these steps to get a readable crash report.

How to make an ipa file?

How can I create a ipa file for my iOS application?
I have written the complete code for my iPhone app and now I'd like to make .ipa file.
Within XCode choose Build > Build & Archive.
In your XCode Organizer (Window > Organizer), you'll see your archived apps
Select one, hit 'Share...' and 'Save to Disk'
The one suggested by #heinklein is the easiest way but another option is to do the following.
Add necessary profiles and adjust build settings.
Set device as target to run the application.
Build the product.
Go to Products->yourAppName.app. Right click and show in finder.
Drag & drop to itunes profile and binary file.
Select app in iTunes and right click to show in Finder. And there you can get the .ipa file.
Sometimes it may happen that Xcode Archiver fails to generate ipa file. Then here is the another option.
Build the application.
After successful build go to "Products" folder in your project navigator.
Right click on it and go to "Show in Finder".
Copy the .app file.
Create a new folder at some other location lets say on Desktop with name "Payload".
Paste that .app file in Payload folder.
Zip the Payload folder.
Rename that zipped folder with .ipa
Thats it.
Reverse procedure is used to retrieve the app file from an ipa file.
Hope this answer helps.
Stepwise Procedure to create an IPA file,
1.First of all,choose your device as IOS Device in Scheme near Breakpoint tab in Xcode.
2.In Xcode menu,Product->Clean and build your application.
3.If the provisioning certificate is not valid,it will lead to build failed with an error.If so you have to change it to a valid certificate through your project->build settings.Else if build succeeded just leave this step.
4.Then select Product->archive,it will create an archive file in Organiser->archives and open it up for you after archive finished.
5.choose share tab in Organiser followed by contents->.ipa and Identity->choose your valid distribution certificate and click next.
6.within a minute it will ask name for your IPA file to save.Give a name and save it in Desktop.
7.Open iTunes and drag and drop your IPA file in Library->Apps.
8.Now connect and select your Device in itunes->choose apps tab under it and sync your app ipa to the Device.It will install your IPA file to the device.
9.Thats all.Now you can run your App IPA file in your device.
Using Archive process with Xcode 9.0
Clean your project from Product -> Clean (cmd + shift + k)
Select Product -> Archive
Once archive is successfully completed it will open in Organizer window
Press Export button present on right side
Now select the distribution method as per your need and click on Next button
This will show the App Store distribution options. Now click on Next button
Re-sign your project (preferred is Automatically manage signing) and click on Next button
There will be Review window containing IPA content details. Click on Export.
Now choose the location where folder is to be saved and Click on Export.
This will create an folder containing IPA, packaging.log, DistributionSummary.plist and ExportOptions.plist file
As of Xcode 4.3, there is no option of Share in organizer. You need to select distribute and then select the option for save as enterprise or adhoc application.
First complete your coding check it with your provisioning profile.
Then click to run on device or ipad.
then go to menu -> prodcut -> clean.
After cleaning menu -> product -> Archive .
After completing it click on share and click on next button.
It will take a minute as per your app file size.
then give a name of ipa and save it where you want.
I'm using xCode 7.2 and have just exported an .api .ipa file to upload to Diawi to share the app with my friends. So here is how I did it:
Product -> Archive
After a while, the Organizer would show up -> Export
Choose something with Ad-hoc, xCode would generate a folder with the .api file in your desktop
Hope this would help!
Hope it helps someone: if you are kicked out of organiser this is how to re-open it. From there you can compile ipa file as recommended. AD Hoc is for sharing ipa by email and you need to archive for "Generic iOS device".