Xcode - ld: library not found for -lPods

后端 未结 22 1481
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-11-28 18:27

I get these errors when I try to build an iOS application.

ld: library not found for -lPods
clang: error: linker command failed with exit code 1 (use -v to s         


        
22条回答
  •  迷失自我
    2020-11-28 19:01

    For me, following had worked.

    1. Go to "Project Target -> Build Settings -> Preprocessing -> Preprocessor Macros". Set "COCOAPODS=1" in all Debug, Integration, Release under "Preprocessor Macros"
    2. Add the following in "Other Linker Flags" under "Project Target"
      1. $inherited
      2. -ObjC
      3. -lc++
      4. -all_load

    Clean and run the project. If still error receives the same then try by setting "Project Target -> Build Settings -> Build Active Architectures Only", Set "Debug" to "YES" and set "Integration and Release" to "No". Then Repeat the same setting of "Build Active Architectures Only" for all "Pods Targets"

    Clean and run the project. If you receive the following error

     No architectures to compile for (ONLY_ACTIVE_ARCH=YES, active arch=x86_64, VALID_ARCHS=i386).
    

    Then try Mr. Mike answer in this link

    Xcode 5.1 - No architectures to compile for (ONLY_ACTIVE_ARCH=YES, active arch=x86_64, VALID_ARCHS=i386)

    Hope it helps!

提交回复
热议问题