kokoabim / iOSOpenDev

iOSOpenDev
http://iOSOpenDev.com
Other
901 stars 284 forks source link

no code signature found #142

Closed cuzv closed 2 months ago

cuzv commented 7 years ago

When run a Pod project with swift and obj-c framework on iPhone, will promote this error, Xcode 8.

keshiim commented 7 years ago

+1

jahov0820 commented 7 years ago

+1

JeffMv commented 7 years ago

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 :

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.

cuzv commented 7 years ago

@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