How to create dSYM file in XCode 4? - iphone

Can you please let me know how can I create .dSYM file using XCode 4?
Thanks!

If you archive the application the dsym file is in the xarchive. Right-click on the entry in the organizer, do "show in finder", right click on the xarchive and choose "show package contents". The dsym is in the dSYMs directory.

Update for Xcode 4.3.1
For me there was 2 build settings I had to edit and I had to edit them in the PROJECT and in the TARGETS sections before XCODE would generate dSYMs.
1) Build Settings -> Build Options -> Debug Information Format = DWARF with dSYM
2) Build Settings -> Apple LLVM compilier 3.1 - Code Generation -> Generate Debug Symbols = YES
Hopefully this will help someone else because I spent a few hours banging my head against the wall with Archives that had empty dSYM directories... I "love" XCODE sometimes....

Make sure you have selected "DWARF with dSYM File" as the Debug Information Format in the build settings of your application. The dSYM is then generated automatically when you build and is usually placed in the same folder as the resulting .app.

You can locate .dSYM and application binary file in archive.
Select Window -> Organizer
This will open up Organizer window containing last created Archive of project
Right click on Archive and select 'Show in Finder'
Select 'Show Package Content' for archive
Project.xcarchive contains dSYMs, Info.plist and Products
dSYMs folder contains dSYM file of your project.
Application folder in Project contains application binary of your project.

You can find dSYM in Product, see below images:
Right click to your App > Show in Finder
Here is it.
If you use Crashlytics , you need to zip it then upload it to dashboard.

Related

OS 12.1.4 (16D57), which may not be supported by this version of Xcode

This iPhone 6 is running iOS 12.1.4 (16D57), which may not be supported by this version of Xcode.
how do i solve it?
You need to add the support files in the Xcode. The files can be found on a system with latest Xcode on the path -
Go to Applications.
Right click on Xcode, click on "Show Package Contents".
Go to Contents -> Developer -> Platforms -> iPhoneOS.platforms -> DeviceSupport
Copy support files for the iPhone version.
Paste the file into the system in which you are facing the issue in same path as of above.
Close the Xcode and run the code again.
If you don't have a system with latest Xcode.
Download the support file from the here and unzip the file. Rename the folder to .
In your case, download "iOS 12.1 Developer Disk Image" from link and rename the folder to "12.1.4 (16D57)". Then copy and paste the folder into the system in which you are facing the issue in below path:
Go to Applications.
Right click on Xcode, click on "Show Package Contents".
Go to Contents -> Developer -> Platforms -> iPhoneOS.platforms -> DeviceSupport
Close the Xcode and run the code again.

Xcode - copy files when running an app on the iPhone simulator

For some reason Xcode has stopped copying files to an app when I try running it.
In the past, I've dragged in a file, kept the "Copy items into destination group's folder (if needed)" option ticked, and all has been well.
Recently, however, I've had to go into the Targets / Build Phases / Copy Bundle Resources and manually add each file for it to be added to the app.
Is there a solution?
In the same view where you check "Copy items to destination group's folder" you have to check the targets you want to have access to the files!
If something like this happens, perform the following.
Close the project, not Xcode.
Open Organizer. Go to Projects ->
Delete the derived data for the required project.
Quit Xcode.
Go to the Project folder in the Finder. Open the package of your ---.xcodeproj
file. Other than the project settings file, delete all the files.
Now open Xcode and your project. First it will do some indexing of your
project. Then build and run.
Now it will add all the files.

xcode 4.3.2 archive build not creating dsym

I have an old project developed with Xcode 4, i remember doing xarchive on Xcode which generated dsym properly. but on the latest version that is x 4.3.2 the xarchive created doesn't have the dsym file. i verified the setting these setting
dwarf with dsym for both debug and release
what else is causing issue, is there any other setting which i should take care ? please advice a way to fix this issue.
note: i selecting archive-debug and not archive release in the scheme. thanks.
Verify that the Generate Debug Symbols are set to YES in Build Settings. Make sure you clean your target before compiling. After doing so, make sure you're looking for the .dSYM in the right location.
Right Click Archive from Organizer and Show In Finder
Right click .xarchive File and Show Package Contents
Navigate to dSYMs directory.
Identifying the problem
Check your build settings for both release and debug configuration:
Generate Debug Symbols → Yes
Debug Information... → DWARF with DSYM
Deployment Postprocessing → YES
Strip Linked Product... → No
Strip Debug... → No
Try check the Report Navigator.
In my case, the dSYM file has not been generated, and there hasn't been a corresponding line that goes like "Generate Appname.dSYM ...in {path}"
But there's been Fabric installed, and it logged the fact of the dSYM file's absence:
Just filer the Report Navigator by "dSYM".
Fixing
In my case I've just had to do what I'm asked of:
DEBUG_INFORMATION_FORMAT should be set to dwarf-with-dsym for ALL
configurations.
Also, it may turn out that dSYM file is being generated in an unexpected place. Check environment variables, especially DWARF_DSYM_FOLDER_PATH and DWARF_DSYM_FILE_NAME.
To embed the dSYM within the app bundle, just set DWARF_DSYM_FOLDER_PATH to $(CONFIGURATION_BUILD_DIR)/$(EXECUTABLE_FOLDER_PATH) and DWARF_DSYM_FILE_NAME to $(EXECUTABLE_NAME).dSYM
Checking
Now the build should create dSYM for your target

There is no "share" button in Xcode 4.3 organizer

I have a valid Apple iOS dev account and all provision profiles set. I can debug the application on my iPhone. But when I do Product -> Archive and went to the organizer, there is only a "Validate..." and "Distribute..." button.
Clicking the "Distribute..." button only provides me with "Save built products" and "Save Xcode archive" which both doesn't contains any "IPA" file.
There is however an "MyApp.app" file built. I'm not sure what to do about it though.
Suggestions?
In short: Make sure you have configured all linked libraries with "Skip Install" to "YES" in the build settings screen. There are a few detailed instruction on how to do that here on SO.
Failing that, clicking on "Validate..." should clue you in to any potential fixes.
So, I just set-up my machine and somehow on one of a library project "Skip Install" was reverted to "NO".
The first sign that this is wrong is that the "Archive Type" shows up as "Generic Xcode Archive" which is the wrong one.
You can verify this by selecting the archive in organizer and clicking "Validate...", Xcode should tells you about the multi-bundle problem.
The "contains multiple product" is a known Xcode issue and can be worked around by making sure that all built products in all of your projects have the build setting "Skip Install" set to "YES" except for your main application project. This can happens if you add a library project by dragging the xcodeproj file into Xcode.
After fixing it and re-archiving, it should now shows up with an archive type of "iOS App Archive".
And if you click "Distribute..." now, you will now be able to properly export an IPA by selecting the second option.
Your PROJECT - Skip Install - set to NO
Your libraries - Skip Install - set to YES
In your SUBproject you should check "Copy headers" section
click on SUB project
Building Phases
DRAG all files fron Public and Private sections to PROJECT section

Archiving file notfound

I am trying to archive an app and the problem is that the Archive succeeded but the archive file is not displayed in organizer or anywhere were I look. Please, can any one help me.
Look in the organizer in the Archives tab, right-click to open the finder folder containing the archive. They will be in a folder under: "/Volumes/User/me/Library/Developer/Xcode/Archives".
If you're using 4.0 and 4.2 you will get your archive file on clicking window >> organizer >> archives.