How to create .dsym file in Xcode 6.4 - ios

I know this should be a simple problem to solve, but I'm stumped.
Using Xcode 6.4, how can I create the .dsym file (this is for submission for Veracode scanning, if that matters).
All the instructions I can find are for Xcode <=5, and don't fully translate to Xcode 6.x

After archiving your app, in your derived data
~/Library/Developer/Xcode/DerivedData/
Go to your application
AppName-xxxxxxxxx/Build/Intermediates/ArchiveIntermediates/AppName/BuildProductsPath/Release-iphoneos
your .dsym file will be in this folder.

Finding the dSYM of a particular build through the Terminal can be quite cumbersome. Instead, use Xcode to do that. In the Window menu, choose Organiser. A list of your apps and archives appears. Select the one you are interested in. Right-click on it, and choose Show in Finder. You will end up in a directory with files called <AppName>-<ArchiveDate>.xcarchive, with the archive you selected in Xcode already selected in the Finder. Right-click again on it, and choose Show Package Contents. And you'll find here a dSYMs folder.

Related

missing dSYM files for Instabug

I've inherited a project with several linked frameworks by virtue of gitmodules. For crash tracking we use Instabug. It keeps asking me for symbol files that I can't find. Note that I did manage to get some of the dSYM files from iTunes Connect.
An example of what it's asking me is:
F9E0A7B7-5989-3D98-A6ED-29F8D1B04A9E
Things I've tried that did not work:
1. can't find symbols for framework
2. using DWARF with dSYM Debug Information Format
3. built my project using both iOS10 and iOS11
Anyone else encounter this?
I'm using:
Xcode 9
Build target: iOS10
If you have enabled Bitcode, you can find the dSYMs inside your app's archive.
You can find the archive via the Xcode Organizer window, by selecting your app in the list on the left side of the window. Once you find the archive, right click on it and select Show in finder.
In the finder, right click on the archive file and select Show Package Contents. In there somewhere there should be a folder named dSYMs.

With Xcode how can I export and share an app with a team member in the simulator?

So I have a teammate/client I need to share an app I'm developing.
They have android and a Mac Desktop so it would be shared through the Simulator only.
I've tried the archive app and there seems to be no way to get this work with the .ipa file which is generated.
Does anyone know of a way to achieve this?
Share the source code, then run the app in Xcode. Voila, it is now in the Simulator. They have to install Xcode anyway to get the Simulator so there really isn't any extra work involved other than building the app.
The .ipa is built for iOS devices and cannot run in the Simulator. I suppose you could transfer the binary to another simulator and get it to work, but I have not heard of anyone doing it that way and, frankly, it seems like potentially more work than "clone this git repo, load the project/workspace in Xcode, click the triangle button and wait a bit."
All you can do is you can just generate the .app file. But how you can run it on a simulator (applies only if Xcode 8.2 or above isn't installed), I really don't have the idea. If you want to have your .app generated, follow this:
Connect any iPhone with your mac
Open your project in Xcode
Wait for the setup (processing symbol files, blah, blah) to be completed
Run your project in that iPhone once
Now just build your project while the iPhone is connected
Search for the Product group (or, folder) and expand it
You will see a file (maybe more) named as your target (project name)
Right click on that file and select show in finder. And voila, you have your .app file
What generates the .app
You will need to have previously built the app for the intended target. The "Product" option in the top menu bar includes a couple of ways to trigger this including: "Build for" of "Destination".
Where is the .app?
The yourApp.app you are looking for is stored in: <<YOURUSERHOME>>/Library/Developer/Xcode/DerivedData/<<YOURAPPNAME-UID>>/Build/Products/Debug-iphonesimulator
Easier way to locate
Open you app in XCODE
Browse the file tree in the left sidebar
Expand the "Products" directory
Right click the .app file you want to share, and select "Show In Finder"
What you are trying to do is not going to work. You can not share the .ipa file for someone else to install it on an iPhone simulator.

Compilation fails in Xcode 4.6 while creating archive for adhoc distribution.

I am new to iOS. and i am trying adhoc distribution ipa file from xcode.
1) I could able compile and run the application in the iphone/ipad.
2) But when i create archive, i am getting compilation error saying 'something.h' not found.
Could someone kindly direct me what could be wrong?
1-Try to open the organizer (Window -> Organizer), then the Projects tab. Select your project then hit the delete button next to the derived data path (to the right). Confirm and let it re-index your project.
2-Go to your project folder, Press on YOURPROJECTNAME.xcodeproj and right click and go to show package contents . Leave the project.pbxproj file, but delete the project.xcworkspace file, any .pbxuser files, and the entire userdata folder.
I hope it works..
If you are putting things in a group in the XCode project navigator, and it is not an actual folder, you do not need to do Mountain/Mountain.h. You would just include Mountain.h.
When creating a group in the project navigator, by default, these are not actual folders, they are just virtual project folders, so if it is trying to see the Mountain folder and it does not exist, you will get that error.
It is weird that it will compile and run otherwise, but just give that a shot, let me know if it works.

How do I start the Application Uploader on a Mac?

I've written an app and I want to upload it to Apple for review and AppStore.
I've read that the Application Uploader is located at /Developer/Applications/Utilities.
However, I don't know what I should do with this information.
Where do I find or enter "/Developer" so that I can the move on to "/Applications"?
Finder? Launcher? Command prompt? XCode?
Open your xCode
On the menu bar go to xCode-> Open Developer Tool -> Application Loader
In XCode 4 you don't need the Application Uploader anymore. Just select the device target (not the simulator), choose the menu Product - Archive.
This will result in a product in the archives section of your organizer (menu: Window-Organizer). Here you can have the app validated, and submitted.
BTW, /Developer is where XCode used to be, now XCode (4.3) is in /Applications/XCode, so that might be a little confusing.
Since an update of Xcode lately, the /Developer folder is not in use any more. You can find Application Loader and other apps within /Applications/Xcode.app/Contents/Applications.
To open this folder, copy the path, open 'Go > Go to Folder' in Finder and paste the path in the popup. Or find Xcode in you Applications folder, right-click on it, press 'Show Package Contents' and navigate to the right subfolder.
Tip: for quick access to Application Loader (and the other apps, i.e., FileMerge, Icon Composer, and Instruments), you can create an alias to them and place these in your Applications folder. Or, if you use them very often, drag them to your Dock.

iphone: Where the .dSYM file is located in crash report

According to this page here if you have proper application binary and .dSYM file then it is easy to symbolic them. But where are .dSYM and application binary files located?
Right Click on your archive -> Show in Finder -> Right click on file and click on Show package contents.
Here you will find your .dSYM file.
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.
If you have archived your project, you can find the dSYM file as above.
If you have build you project for a real device, you can also find the dSYM file by the following way:
Go to Project Navigator, and find Products folder
Right click the app, and choose Show in Finder.
Make sure that the app is in black color, not red. Because red color means that you have not build the target for a real device.
You can find the dSYM file with the same name with your app, in the same folder.
Before all of these actions, make sure you have configured the xcode build settings right, as follows:
Generate Debug Symbols setting is enabled.
Debug Infomation Format are set to DWARF with dSYM File.
Hope this will help.
I found my .dsym file in /Users/<username>/Library/Developer/Xcode/DerivedData/<appname>/Build/Products/<appname>
If you removed archive from Xcode's Organizer like me, you can download dsym at the appstore. Select your app, select target version and go to Activity tab. Here you can download desired dsym.
In Xcode 5.1.1 you will find it under Xcode -> Preferences -> Locations -> DerivedData. Under DerivedData you will see a bunch of random directory names. Find the ones that starts with your project name. Then get the latest directory that was created for your project. Then under that directory go to Build/Products/<Your specific release>/*.app.dSYM.
You can even click on your end product under "Products" in project explorer and do a "Show in finder" to get there directly.
The .dSYM file should have been generated when you built your application. Look in your build product directory.
If you have the UUID you are looking for, you can search the files with the following command:
mdfind "com_apple_xcode_dsym_uuids == <UUID>"
It's simple. Please follow the steps here:
Open your project in Xcode, and select the project file in the Xcode Navigator.
Select your main build target from the Select a project or target dropdown.
Open the target's Build Settings tab.
Click All near the top of the tab.
Search for "debug information format".
Set Debug Information Format to DWARF with dSYM File.
Now go to Product > Archive > Your Build > right click on your build and click on Show in Finder. Now right click and go to Show Package Contents > dSYMs > Yourappname.app.dSYM_
If you haven't generated an archive and are trying to debug it on the device, dsym can be found at
/Library/Developer/Xcode/DerivedData/YOUR_APP/Build/Products/Debug-iphoneos
1.Select Window -> Organizer
2.Right click on Archive(your app name) and select 'Show in Finder'
3.Select 'Show Package Content' for archive
4.Right click on yourProject.xcarchive contains dSYMs, Info.plist and Products
5.select yourappname.app.dSYM
I just want to share something from my experience. Every time when I release a new version of my framework I save its dSYM in a separate folder. So, later I can find the relevant dSYM easily when I need it. It could be easily done by adding this line of code to the bash script in Build Settings (e.g. in this example I'm saving it to the desktop).
cp -r "${BUILD_DIR}/${CONFIGURATION}-iphoneos/${FRAMEWORK_NAME}.framework.dSYM" "${HOME}/Desktop/${FRAMEWORK_NAME}.framework.dSYM"
Just one more way to find them all, UUID as a bonus
mdfind -name .dSYM | while read -r line; do dwarfdump -u "$line"; done
If you want, you can download them from App Store Connect.
It's under Testflight > Builds > Click your build version code > Build Metadata > Download dSYM
[dSYM]
.dSYM is generated near .app..dSYM is defined by Build location[About]. Usually it is a Derived Data folder.
For example F49088168M.app.dSYM is located
/Users/alex/Library/Developer/Xcode/DerivedData/F49088168M-gltfsnpvscodolcmxrvkbaebeppp/Build/Products/Debug-iphonesimulator/F49088168M.app.dSYM
I found build configuration should be Release to generate .dSYM file.
First check both of them are in the same configuration - DWARF with dSYM File
If it is okay, then navigate to the following path of your finder or from your terminal
/Library/Developer/Xcode/DerivedData/YOUR_APP/Build/Products/Debug-iphoneos
Find App Name and Open Package Content, you will find your .dsym file

Resources