我已经通过CocoaPods将Tesseract iOS库添加到我的Swift项目中,但我想在模拟器上关闭代码签名以进行开发。我已经在项目和我的目标上添加了“不签名”,但是构建继续进行代码签名步骤。我的Podfile中还有一些代码试图关闭代码签名。
在构建日志中,我看到了
Code Signing /Users/ME/Library/Developer/Xcode/DerivedData/PROJECT-fchynlbfcpjfbcfaplehdrryfpqn/Build/Products/Debug-iphonesimulator/PROJECT.app/Frameworks/TesseractOCR.framework with Identity -
/usr/bin/codesign --force --sign - --preserve-metadata=identifier,entitlements "/Users/ME/Library/Developer/Xcode/DerivedData/PROJECT-fchynlbfcpjfbcfaplehdrryfpqn/Build/Products/Debug-iphonesimulator/PROJECT.app/Frameworks/TesseractOCR.framework"
podfile看起来像这样:
# Uncomment the next line to define a global platform for your project
# platform :ios, '9.0'
target 'PROJECT' do
# Comment the next line if you're not using Swift and don't want to use dynamic frameworks
use_frameworks!
pod 'TesseractOCRiOS', :git => "git@github.com:gali8/Tesseract-OCR-iOS.git"
target 'PROJECTTests' do
inherit! :search_paths
# Pods for testing
end
end
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