sumit
9/24/2019 - 4:22 AM

Fabric Xcode pods

FABRIC

  1. always turn the net on of your iphone/emulator so that fabric can connect to the servers
  2. in build settings -> click all -> search dsym -> select dwarf with dsym
  3. go to project navigator -> app -> Targets -> app -> on right hand side File Inspector -> identity and type ->change name of app
  4. go to file -> workspace settings -> change build system to legacy.

PODS

  1. pods installation:- https://stackoverflow.com/questions/20755044/how-to-install-cocoapods
  2. after pods installation, close your xcode project and open .xcworkspace xcode project file
  3. remove cocoapods:- https://stackoverflow.com/questions/16427421/how-to-remove-cocoapods-from-a-project/32921657#32921657
  4. if you have changed target name as mentioned in FABRIC 3. then also change the target name in podfile

INSTALLATION PROCEDURE

  1. pod init

  2. Then open your project's podfile by typing in terminal:

    open -a Xcode Podfile

  3. Your Podfile will get open in text mode. Initially there will be some default commands in there. Here is where you add your project's dependencies. For example, in the podfile, type

    pod 'AFNetworking', '0.9.1'

    (this line is an example of adding the AFNetworking library to your project).

    Other tips:

    Uncomment platform :ios, '9.0' Uncomment user_frameworks! if you're using Swift

  4. When you are done editing the podfile, save it and close Xcode.

  5. Then install pods into your project by typing in terminal:

    pod install

Error while archiving : "clang: error: linker command failed with exit code 1 (use -v to see invocation)"

  1. Specify your global platform in Podfile and then reinstall pods and again open workspace file