target 'CrashLyticsSwift' do
use_frameworks! pod 'Firebase/Core'
pod 'Fabric', '~> 1.7.9'
pod 'Crashlytics', '~> 3.10.5'
end
The frameworks you added include a run script that initializes Crashlytics. Add it to your project's build phases:
-
Open your project in Xcode, and select its project file in the Navigator.
-
Select your main build target from the Select a project or target dropdown.
-
Open the target's Build Phases tab.
-
Click + Add a new build phase, and select New Run Script Phase.
-
Add the following line to the Type a script... text box:
"${PODS_ROOT}/Fabric/run"
-
Xcode 10 only: Add your app's built Info.plist location to the Build Phase's Input Files field:
$(BUILT_PRODUCTS_DIR)/$ (INFOPLIST_PATH)
var shoppingList = ["catfish", "water", "tulips", "blue paint"]
print(shoppingList[10])