Error: “The sandbox is not in sync with the Podfile.lock…” after installing RestKit with cocoapods

后端 未结 30 2383
小蘑菇
小蘑菇 2020-11-27 10:12

I\'ve encounter an strange issue after installing RestKit with cocoapods. after resolving RestKit dependency for my project with cocoapods and trying to build it, I face thi

30条回答
  •  温柔的废话
    2020-11-27 10:20

    In my case, I got same error after integrating WatchKit app. To solve problem I needed to add both targets of WatchKit in Podfile:

    target 'MyProject WatchKit App' do
        platform :watchos, '2.0'
        shared_pods
    end
    
    target 'MyProject WatchKit App Extension' do
        platform :watchos, '2.0'
        shared_pods
    end
    

    PS: Maybe this happened for me because I mistakenly installed pods for MyProject WatchKit App target initially.

提交回复
热议问题