Pods was rejected as an implicit dependency for 'libPods.a' because its architectures 'XXX' didn't contain all required architectures

后端 未结 6 1974
没有蜡笔的小新
没有蜡笔的小新 2020-12-29 01:07

A friend updated Cocoapods in our project. When I pulled the latest stuff from git I got the following error:

Pods was rejected as an implicit dependency for         


        
相关标签:
6条回答
  • 2020-12-29 01:43

    In my case, it was because I had the "Build Active Architecture Only" parameter set to Yes for Debug mode. Changing it no No fixed it.

    0 讨论(0)
  • 2020-12-29 01:52

    Also make sure that your podfile targets the same iOS version your project targets:

    For example, if you're targeting iOS 10.0 in your Xcode project your podfile should include platform :ios, '10.0' at the top, too.

    Per this solution, which was the problem in my case.

    0 讨论(0)
  • 2020-12-29 01:53

    For me, what worked was to change the CocoaPod project "Base SDK" to "Latest iOS".

    0 讨论(0)
  • 2020-12-29 01:53

    What fixed this problem for me was precisely the opposite of the most voted answer:

    "Build Active Architecture Only" set to "YES"

    both in main target and Pods target + Debug and Release

    0 讨论(0)
  • 2020-12-29 01:55

    Try to run the project first on an iPhone 4s in simulator and after that it should work.

    0 讨论(0)
  • 2020-12-29 02:03

    Try to set Build Active Architecture Only to NO for 'Pods' project and your app's target

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