Xcode 10, not building pods can't build project

后端 未结 4 1745
后悔当初
后悔当初 2021-02-08 12:58

After updating to the latest Xcode to support ios12 I can\'t build my project It seems that none of the pods are being compiled. I\'m getting an error for unknown import such a

相关标签:
4条回答
  • 2021-02-08 13:18

    This is the problem of your previous cache store in the derived data folder.

    Go to the DerivedData folder. Close XCode. Delete your apps from DerivedData folder. Reopen XCode, clean project and run again.

    XCode preference > Locations > Derived Data (click right side icon in the directory path, it will open DerivedData folder)

    Select your pod from the left project navigator. > Select Target. > Select "Build Settings". > Build Active Architecture Only to No

    0 讨论(0)
  • 2021-02-08 13:31

    In my case

    pod deintegrate
    pod clean
    pod install
    

    then rebuild the project works.

    My XCode = 11.3.1

    0 讨论(0)
  • 2021-02-08 13:36

    Here is another case: make sure "Scheme" > "Build" > "Find Implicit Dependencies" is turned on.

    I turned it off (tried to fix another problem) and spent quite some time trying to fix the build.

    0 讨论(0)
  • 2021-02-08 13:42

    I had the same problem with Xcode 10 and newly added pods.

    I've noticed new pod was not added to Target -> Build Phases -> Link Binary With Libraries. When I added new pod-framework manually, archiving worked ok.

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