我有麻煩正確安裝以下cocoapod: github.com/drmohundro/SWXMLHashiOS版的CocoaPods問題:在我的項目(自定義文件夾和Apple關注目標)的部分沒有這樣的模塊
有趣的是,我可以訪問由我的常規ViewController.swift中的窗格安裝的框架「SWXMLHash」,但無法在Apple Watch擴展文件中訪問它。此外,我不能在自定義組/文件夾來訪問它,我做封裝像WebServiceHelper.swift輔助方法
Overview of my folder structure (Image link)
我可以很容易地導入和使用由吊艙提供的框架在我ViewController.swift 對於iPhone。 但是,當我嘗試訪問它外含有 「ViewController.swift」/ 「AppDelegate.swift」 的文件夾我得到以下錯誤:
No such module 'SWXMLHash'
Error when I try to access the framework in my "myAppName Kit"-folder (Image link)
我Podfile:
# Uncomment this line to define a global platform for your project
# platform :ios, '8.0'
# Uncomment this line if you're using Swift
use_frameworks!
source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '8.0'
pod 'SWXMLHash', '~> 2.1.0'
target 'myAppName' do
end
target 'myAppNameTests' do
end
target 'myAppNameUITests' do
end
target 'myAppName Watch' do
end
target 'myAppName Watch Extension' do
end
非常感謝您的幫助!
感謝您的提示!不幸的是,它仍然在相應的部分顯示錯誤。 – Weiland
你有更新豆莢,然後通過終端? – techloverr