【发布时间】:2016-04-14 08:08:51
【问题描述】:
我正在尝试创建现有 iOS 应用程序的 tvOS 版本,并且希望能够重用许多相同的代码(即第 3 方库、数据管理器等),所以我使用的是相同的.xcworkspace 只有一个 iOS 目标和一个 tvOS 目标。
由于我将 cocoapods 用于所有 3rd 方库,并且需要将其中一些(不是全部)重用于 tvOS 应用程序(即 Parse),我想知道将 cocoapods 与我的项目集成的正确方法。
我在尝试编译 tvOS 目标时收到此错误,但不是 iOS 目标:
diff: /../Podfile.lock: No such file or directory
diff: /Manifest.lock: No such file or directory
error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.
是的,我已经尝试了所有通常的清理项目、删除 .xcworkspace、重新运行 pod install 等操作。
我的 podfile 如下所示:
source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '9.1'
use_frameworks!
pod 'Parse'
pod 'ParseFacebookUtilsV4'
pod 'Fabric'
pod 'Crashlytics'
【问题讨论】:
标签: ios parse-platform cocoapods tvos