I have a workspace with multiple projects in it. In one of the project I am using Fabric to distribute my build to beta testers. It works perfectly as expected.
Then I moved to continuous integration with Jenkins. Build is successful. However, Fabric doesn't upload the dSYM file.
I have the following script in Execute Shell of Jenkins
Note: Fabric.framework/run command is added in Build phase of the project
=====================================================
ARCHIVE_DEST_PATH="${WORKSPACE}/archive"
ARCHIVE_PACKAGE="${ARCHIVE_DEST_PATH}.xcarchive"
PROJECT=<project>
FRAMEWORK=<project-sdk>SharedSDK
cd ${WORKSPACE}
if [ -f "$ARCHIVE_PACKAGE/Info.plist" ]; then
rm -r "$ARCHIVE_PACKAGE"
fi
xcodebuild -workspace <project-ws>.xcworkspace -scheme ${FRAMEWORK}
xcodebuild -workspace <project-ws>.xcworkspace -scheme ${PROJECT} -archivePath ${ARCHIVE_DEST_PATH} archive