xcodebuild toolchains - fancyfsz/FancyWiki GitHub Wiki


start archive

xcodebuild -project "$your-xcodeproj-path" -scheme "$your-main-scheme-name" -configuration "$MODE" clean archive -archivePath "$your-archive-destination-path" -destination generic/platform=iOS

start export

xcodebuild -exportArchive -exportOptionsPlist "$your-options-plist-path" -archivePath "$your-archive-destination-path" -exportPath "your-export-path"

Tips: After archiving we get a file postfix with xcarchive. We can click Xcode-Window-Organizer to open Organizer window. On the left panel, we click Archives label, then we can see here is a list which show us all the archives we have archived. We can use Show In Finder button to open that file destination. dSYMs[debugging SYMbols] file locates in xcarchive. They are used to symbolicate crash logs, which means translating memory addresses in a crash log into human-readable function names, file names, and line numbers to aid in debugging. These files should be preserved and backed up as part of the application's debugging and release processs.