Xcode 11.2 - Unable to install App file to device?

前端 未结 20 2797
半阙折子戏
半阙折子戏 2020-12-29 18:32

I recently updated my OS to Catalina, and updated Xcode to 11.2. Since doing so, when I try to run a release version of my app on my device, I\'m simply given the error:

相关标签:
20条回答
  • 2020-12-29 18:58

    For me, it was that the watch i was trying to use didn't unlock so i had to lock and unlock my watch again and then it was working fine.

    0 讨论(0)
  • 2020-12-29 19:00

    Go to File -> Workspace Settings, and make sure your build system is set to Legacy Build System.

    I ran into the same issue on Catalina and Xcode 11.2 and this solved it for me.

    As of Xcode 11 Apple is starting to enforce some of the build criteria that was previously only required for AppStore builds on .ipa extraction, and device builds.

    So far I have encountered:

    • Requiring the above legacy build system setting for device deployments for older projects or projects that use older frameworks
    • Removing unused architectures to extract an ipa from an archive
    0 讨论(0)
  • 2020-12-29 19:02

    I manage to fix this issue when first I clean:

    cmd + k
    shift + cmd + k
    

    and then I delete all the content of Deriving Data the path of the folder should be like this

    /Users/youruser/Library/Developer/Xcode/DerivedData
    

    Or you can check it in

    Xcode -> Preferences -> Locations
    
    0 讨论(0)
  • 2020-12-29 19:02

    This is a codesign problem.

    You can check iOS device logs to see which framework go wrong. filter 'installd' process. you can clearly say which framework codesign is wrong. so just find it out and fix it!

    0x16fa53000 +[MICodeSigningVerifier _validateSignatureAndCopyInfoForURL:withOptions:error:]: 77: Failed to verify code signature of /var/installd/Library/Caches/com.apple.mobile.installd.staging/temp.dABVKh/extracted/Your.app/Frameworks/xxx.framework : 0xe8008001 (An unknown error has occurred.)
    0x16fa53000 -[MIInstaller performInstallationWithError:]: Verification stage failed
    
    0 讨论(0)
  • 2020-12-29 19:03

    Delete derivedData folder

    rm -rf ~/Library/Developer/Xcode/DerivedData
    
    0 讨论(0)
  • 2020-12-29 19:04

    This issue is only related to CODE SIGNING

    But, the key point to note here is, if you are using XCode 11.x version. Not only the code signing in your project, but we should check the code signing in Thirdparty SDKs or dependencies that we add to our project.

    Steps to verify the Code Signing of 3rd party SDks:

    1. Download the source code of framework you need
    2. Open the .xcproj file from the source code using XCode 11.x
    3. Go to Targets -> Signing & Capabilities -> Select all tab -> Bundle Identifier If you see any unevenness in the identifier like, identifier with 4 seperators (Eg: com.company.mac.app)

      Change it to com.* and enter.

    4. Make sure your XCODE COMMAND LINE TOOLS is set with XCode 11.x

    5. Now, use below command to rebuild the SDK, with the changes done in above step-3

        carthage build --no-skip-current --cache-builds --platform iOS
      
    6. Now copy the framework generated from, carthage folder of source code, and replace the existing SDK in your project.

    Repeat the same for process for all the 3rd party SDKs, in your project.

    NOTE: Make sure you marked all the 3rd party SDKs as Embed & Sign in

    Targets => General => Frameworks, Libraries, and Embedded Content
    
    0 讨论(0)
提交回复
热议问题