Crashlytics in iOS won't proceed past “Build Your Project” in Fabric app

前端 未结 26 920
隐瞒了意图╮
隐瞒了意图╮ 2020-11-30 01:02

I\'m installing Crashlytics for my iOS app. I downloaded it via their site link, and went through all the steps for integrating the frameworks, adding the run script, etc. <

相关标签:
26条回答
  • 2020-11-30 01:31

    For Xcode 10. Add your app's built Info.plist location to the Build Phase's Input Files field:

    $(BUILT_PRODUCTS_DIR)/$(INFOPLIST_PATH)

    This solved my issue i hope this can solve others issue.

    0 讨论(0)
  • 2020-11-30 01:35

    I was stucked on Build phases too.

    I have also unchecked "Run script only when installing" and press again command+B and then I passed to the next step.

    0 讨论(0)
  • 2020-11-30 01:35

    In the Run Script build phase there is a call:

    ./Crashlytics.framework/run <your_api_key_here>
    

    Maybe you added some conditions to trigger it only on certain builds like:

    releaseConfig="Release"
    
    if [ "$releaseConfig" = "${CONFIGURATION}" ]; then  
        echo "Running Crashlytics"
        ./Crashlytics.framework/run <your_api_key_here>
    fi
    

    so that it will not just trigger on ⌘B

    See https://dev.twitter.com/crashlytics/ios/advanced-setup

    0 讨论(0)
  • 2020-11-30 01:37

    As for Xcode 10.2.1, the automated installation via Fabric Mac app won't work anymore. New apps cannot be added via the New App Step-by-step guide.

    You have to follow the manual installation instructions. Download and add the 2 frameworks into your Xcode workspace, then add the Run Build Script phase (and related Fabric codes), then build the App. Last (very important), run the app in an actual device.

    Once the App is successfully launched, the new App information will be available in the Fabric dashboard as well as the Fabric Mac App (needs to relaunch the App to see the new app).


    Here are the steps:

    1. Download the 2 frameworks
    2. Drag to your project where your App Delegate is (make sure ticked "Copy items if needed")
    3. Compile the project / workspace in Xcode
    4. Add the "Run Script Phase" as instructed here; note that Xcode 10+ requires an extra configuration at Input Files
    5. Add the required import and initialization codes in App Delegate
    6. Add the Fabric API keys in Info.plist
    7. Compile again
    8. Run the App in a real device. You will see the line Crashlytics in the Xcode log. If no log appears, checks if your active scheme contains OS_ACTIVITY_MODE settings. Set it to default if the current setting is disabled.
    9. If the Crashlytics line appears, that means the manual installation is working; you will see your App appearing at Fabric online dashboard.
    0 讨论(0)
  • 2020-11-30 01:37

    I had the same issue today. The problem was that i didn't have the run-script :

    ./Fabric.framework/run <api key>
    

    in my project. Once i put this back in then it all worked perfectly. I also cleaned my project and deleted derived data just to be sure.

    0 讨论(0)
  • 2020-11-30 01:37

    If you use Xcode 10.

    Project Navigator -> your project -> Targets -> Build Phases -> your Run Script for Fabric -> Input Files -> "+" (add input file) -> clear field and past this line:

    $(BUILT_PRODUCTS_DIR)/$(INFOPLIST_PATH)
    

    Be sure to remove this: $(SRCROOT)/

    0 讨论(0)
提交回复
热议问题