[英]Xcode12.4 - iOS Umbrella xcframework framework with xcframework sub projects
[英]Framework not found MapboxCommon.xcframework iOS Xcode
我想為 iOS 使用 MapBox 搜索 SDK。 所以我遵循了這個官方文檔
首先,我在 /home 目錄中創建了“.netrc”作為指令,然后添加 -
use_frameworks!
target "TargetNameForYourApp" do
pod 'MapboxSearchUI', ">= 1.0.0-beta.3", "< 2.0"
end
到 podfile。 然后運行 pod install 並在終端中得到它 -
Analyzing dependencies
Downloading dependencies
Installing MapboxCommon (9.0.2)
Installing MapboxMobileEvents (0.10.8)
Installing MapboxSearch (1.0.0-beta.4)
Installing MapboxSearchUI (1.0.0-beta.4)
Generating Pods project
Integrating client project
[!] Please close any current Xcode sessions and use `MapBox.xcworkspace` for this project from now on.
Sending stats
Pod installation complete! There is 1 dependency from the Podfile and 4 total pods installed.
[!] Automatically assigning platform `ios` with version `12.1` on target `MapBox` because no platform was specified. Please specify a platform for this target in your Podfile. See `https://guides.cocoapods.org/syntax/podfile.html#platform`.
但是在運行所有這些之后,我在 Xcode 中遇到了這個錯誤 -
Framework not found MapboxCommon.xcframework
我也試過這個 -
pod deintegrate && pod cache clean --all
pod install
但仍然是同樣的錯誤。
我想我已經正確地遵循了文檔並正確輸入了秘密 API 密鑰。 那么為什么我會收到這個錯誤?
編輯:
在 Project Targets 中未列出已安裝的 pod -
但是在項目目錄的 pod 文件夾中 -
還有其他可用的框架在 Xcode Pods Target 中不可用。
這是否表明框架在項目中不可用?
編輯:
您正面臨此錯誤,因為您仍在嘗試構建項目文件 (xcodeproj),而不是 CocoaPods 生成的工作區。
要解決此問題,請打開“MapBox.xcworkspace”文件並使用該文件從現在開始訪問您的項目。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.