自从我在Podfile中启用use frameworks!
后,我收到了所有pod框架的以下错误。当我尝试将应用程序提交到应用程序商店以进行TestFlight分发时,会发生这种情况。
ERROR ITMS-90046: "Invalid Code Signing Entitlements.
Your application bundle's signature contains code signing entitlements that are not supported on iOS.
Specifically, value 'TEAM_ID.com.app.app' for key 'application-identifier' in 'Payload/App.app/Frameworks/SomeLib.framework/SomeLib' is not supported.
This value should be a string starting with your TEAMID, followed by a dot '.', followed by the bundle identifier."
我在我的Podfile中添加了以下post_install设置,因为Pods不应该是代码签名。
post_install do |installer|
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings['EXPANDED_CODE_SIGN_IDENTITY'] = ""
config.build_settings['CODE_SIGNING_REQUIRED'] = "NO"
config.build_settings['CODE_SIGNING_ALLOWED'] = "NO"
end
end
end
有关如何解决此问题的任何想法?