Xcode 11.2 - Unable to install App file to device?

前端 未结 20 3116
半阙折子戏
半阙折子戏 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 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
    

提交回复
热议问题