iOSOpenDev icon indicating copy to clipboard operation
iOSOpenDev copied to clipboard

no code signature found

Open cuzv opened this issue 8 years ago • 4 comments

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

cuzv avatar Jan 22 '17 03:01 cuzv

+1

keshiim avatar Mar 14 '17 10:03 keshiim

+1

jahov0820 avatar Mar 23 '17 03:03 jahov0820

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 avatar Mar 23 '17 12:03 JeffMv

@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

cuzv avatar Mar 25 '17 02:03 cuzv