Xcode 6 Archiving and get a warning “Skipping copy phase strip ,binary is code signed” when add “share extension” to target

前端 未结 5 2050
没有蜡笔的小新
没有蜡笔的小新 2020-12-29 08:01

I got this warning when I added share extension to my project and archiving it warning: skipping copy phase strip, binary is code signed: /Users/xxxx/xxx/xxxx/

5条回答
  •  旧时难觅i
    2020-12-29 08:23

    "Compiled code usually contains debug information. This debug stuff is helpful for inspecting running code in debugger, but less so for the optimized code you would ship in distribution builds. Therefore it gets stripped out when doing an Archive build.

    The problem here is that PBXCp is unable to strip out debug symbols from signed binaries because this would invalidate the digital signature. So if you have a project that was created before Xcode 6.3 you will now get a warning like this.

    To fix the warning simply change both values to NO. Removing them does not work because the default value is still YES for both. The project templates that came with Xcode 6.3 have these turned off by default. Only projects that were started with older templates still have YES on the Release line."

    Source: https://www.cocoanetics.com/2015/04/skipping-copy-phase-strip/

提交回复
热议问题