no code signature found
When run a Pod project with swift and obj-c framework on iPhone, will promote this error, Xcode 8.
+1
+1
Did you set your apple developer account in the settings of Xcode ? If you have, you can do the next step and set the things that will identify you as the developer :
- Xcode 8 : https://i.stack.imgur.com/3Igsa.png
- Xcode < 8 : instead of these values put the ones related to your dev account.
Finally, if you played with some settings in SDKSettings.plist like in this answer, you may have to reinstall Xcode.
One last thing, for some unknown reasons I personally cannot use Logos since I'm on Xcode 8. It was working fine with Xcode <= 7.x but Xcode 8 seems to have changed a lot lot lot of things...
PS: you can find old versions of Xcode and the command line tools by browsing the download archives.
@JeffMv Of course I set the developer account and enabled automatically manage signing, still not working. Instead, I figured out another workaround by change the Podfile like this:
######## Target: XXXXX
def install_pods_by_objc
# Objc
pod 'Reveal-iOS-SDK', :configurations => ['Debug']
end
def install_pods_by_swift
# Swift
pod 'Alamofire'
# Put follow lines in swift libs install command
post_install do |installer|
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings['SWIFT_VERSION'] = '3.0'
config.build_settings['EXPANDED_CODE_SIGN_IDENTITY'] = "iPhone Developer: balabala (************)"
config.build_settings['CODE_SIGNING_REQUIRED'] = "YES"
config.build_settings['CODE_SIGNING_ALLOWED'] = "YES"
end
end
end
end
target 'XXXXX' do
install_pods_by_objc
install_pods_by_swift
end