markhorrocks markhorrocks - 1 year ago 128
iOS Question

Fabric plugin won't start in Xcode iOS swift app

I have taken over an iOS swift app for my company and opened it in Xcode. Fabric and Crashlytics are installed by cocoa pods. The Fabric framework is listed under Pods and I have installed and configure Crashlytics in accordance with these instructions and the run script has been added to the project target.

The API has been entered into into info.plist.

I can build and run the project and simulator opens and shows me the project.

Then I tried to follow the instructions below to distribute the project for testing. The first instruction is "make sure the Fabric plugin is running" but I have no idea how to do that. Next I build the archive successfully with Project -> Archive and an archive manager pops up but not Fabric popup. I have tried restarting my mac and Xcode but to no avail. There is nothing in the menu bar, etc to indicate that Fabric exists beyond the files in the project navigator.

Answer Source

Mike from Fabric here and our Beta walkthrough is a little confusing if you're using Cocoapods only, so my apologies there.

If you're using the Cocoapods only version of Fabric, then you can use the /submit command to upload distributions via Beta. Full documentation is here, but there are two options:

1) Add an Archive Post run script action:

"${PODS_ROOT}/Fabric/submit" <API_KEY> <BUILD_SECRET> \
-emails, \
-notesPath ~/Notes/ReleaseNotes.txt \
-groupAliases GroupAlias,GroupAlias2 \
-notifications YES

2) Run the submit command after the .IPA has been created:

${PODS_ROOT}/Fabric/submit <API_KEY> <BUILD_SECRET> \
-ipaPath /path/to/my.ipa -emails, \
-notesPath ~/Notes/ReleaseNotes.txt \
-groupAliases GroupAlias,GroupAlias2 \
-notifications YES

Alternatively, you can download from here and follow the rest of the instructions on the Beta walkthrough.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download