我有一个IOS swift应用程序,它使用2个外部包,1) SwiftKeychainWrapper和2)图表。这两个包都是使用'pod‘安装的,我的Podfile如下所示:
# Uncomment the next line to define a global platform for your project
platform :ios, '9.0'
use_frameworks!
target 'MyApp' do
# Comment the next line if you're not using Swift and don't want to use dynamic frameworks
pod 'SwiftKeychainWrapper', '~> 3.0'
pod 'Charts'
# Pods for MyApp
target 'MyAppTests' do
inherit! :search_paths
# Pods for testing
end目标'MyAppUITests‘继承!:search_paths #用于测试结束的Pod
我使用的是Xcode 9.2版
目录结构如下所示:
MyApp
...
...
Pods
Podfile
Frameworks
iOS
Foundation.framework
Pods
Charts
Core
Support Files
SwiftkeychainWrapper
Products
Target Support Files在MyApp设置下,我看到了以下两个有趣的选项卡:
- General
Embedded Binaries
—
Linked Frameworks and Libraries
Name
Pods_MyApp.frameworkSwiftKeychainWrapper和图表都是使用'pod install‘安装的。
我还在链接框架和库下添加了"Charts.framework“,但我得到了上面的错误。我尝试在'Embeddd section‘下添加’Charts.framework‘,但仍然得到相同的错误。
如果我遵循https://github.com/danielgindi/Charts的当前指令,如下所示:
Drag the Charts.xcodeproj to your project
Go to your target's settings, hit the "+" under the "Embedded Binaries" section, and select the Charts.framework
@import Charts这意味着将其添加到“嵌入式二进制文件”下。如果我这样做了,那么“SwiftKeychainWrapper”的构建就会失败。
顺便说一句,当我试图在我的物理iphone6设备上运行它时,会发生这个错误。它在模拟器上工作正常。我真的不知道该怎么做。任何帮助都是非常感谢的。
发布于 2018-02-08 14:55:15
这原来是由于“证书问题”造成的。在apple.com上重新创建新的开发证书后,此问题将自行解决。一个建议是,如果您确实看到了类似的问题,只需从密钥链访问中删除您的证书,然后重新创建一个新的。执行一个干净的构建并运行。
发布于 2020-02-19 19:27:32
选中Chart Framework add in General-> Embedded Binaries + --> ChartFramework。
如果已添加,请使用'Embed & sign‘更改嵌入列
这是我的工作。
https://stackoverflow.com/questions/48677347
复制相似问题