Required code signature missing for a library

前端 未结 10 902
眼角桃花
眼角桃花 2020-12-14 06:55

I am using Swift 3.0 in Xcode 8 and facing this error when running my app. I have used third party library SlideMenuController.

When I run my app I encounter this er

相关标签:
10条回答
  • 2020-12-14 07:45

    Just change the correct Xcode version you're currently running in Xcode preference / Locations.

    Please refer this image for your reference

    0 讨论(0)
  • 2020-12-14 07:46

    Method 1

    Add following code to your pod file

    post_install do |installer|
        installer.pods_project.build_configurations.each do |config|
            config.build_settings.delete('CODE_SIGNING_ALLOWED')
            config.build_settings.delete('CODE_SIGNING_REQUIRED')
        end
    end
    

    Method 2

    Perform following steps

    1. Delete application from mobile or simulator (wherever you are facing this issue).
    2. Select slideMenuController.framework in project navigator, right click on it, an click show in Finder. Open _CodeSignature folder and delete all files except CodeResources.

    3. Close Xcode, open Terminal and enter the following command

      rm -rf ~/Library/Developer/Xcode/DerivedData
      

      This will remove all derived data from xcode.

    4. Open XCode, clean and run application. Hopefully, problem will be resolved.

    0 讨论(0)
  • 2020-12-14 07:46

    I am experiencing the same issue with Xcode Version 8.0, having turned on the 'automatically manage signing' feature.

    Other solution is:

    Please see this issue: https://github.com/Carthage/Carthage/issues/1401

    Second solution may be work for you.

    Note: Please remove derive data from here ~/Library/Developer/Xcode/DerivedData

    0 讨论(0)
  • 2020-12-14 07:47

    I had same issue with my mac10.12.5 & Xcode 9, There seems to be issue with existing data at derived data location SO better just remove your derived data either by :

    XCode>Prefrences>Locations>click on arrow at Derived Data location & delete it.
    

    or either by writing this command on terminal: Make sure your xcode is in application or you mention your xcode location :

    rm -rf ~/Library/Developer/Xcode/DerivedData
    

    Now Open XCode, run application. Hopefully, problem will be resolved. Good luck...

    0 讨论(0)
提交回复
热议问题