NativeScript / NativeScript/nativescript-cli

Skipping copy phase strip, binary is code signed IOS

未关闭
#5,334 3 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

主要语言
JavaScript
星标
1.1k
派生
204
平均合并
1 天 9 小时
30 天内合并 PR
8

描述

Hello,

We building our IOS release app with following command:

tns build ios --clean --for-device --env.aot --env.report --env.hiddenSourceMap --certificate keychain.p12 --certificatePassword ${IOSKEYCHAINPASS} --release --provision $uuid

We have a lot of this spam like this:


warning: skipping copy phase strip, binary is code signed: /Users/user/builds/r9xYjo8J/0/xxx/xxxcom-mobile/node_modules/tns-core-modules-widgets/platforms/ios/TNSWidgets.framework/TNSWidgets (in target 'xxxcommobile' from project 'xxxcommobile')
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/bitcode_strip /Users/user/builds/r9xYjo8J/0/xxx/xxxcom-mobile/node_modules/tns-core-modules-widgets/platforms/ios/TNSWidgets.framework/TNSWidgets -r -o /Users/user/Library/Developer/Xcode/DerivedData/xxxcommobile-dvfmouoselmuzbdcyewzxtbiifmz/Build/Intermediates.noindex/ArchiveIntermediates/xxxcommobile/InstallationBuildProductsLocation/Applications/xxxcommobile.app/Frameworks/TNSWidgets.framework/TNSWidgets 
warning: skipping copy phase strip, binary is code signed: /Users/user/builds/r9xYjo8J/0/xxx/xxxcom-mobile/node_modules/nativescript-ui-sidedrawer/platforms/ios/TNSSideDrawer.framework/TNSSideDrawer (in target 'xxxcommobile' from project 'xxxcommobile')
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/bitcode_strip /Users/user/builds/r9xYjo8J/0/xxx/xxxcom-mobile/node_modules/nativescript-ui-sidedrawer/platforms/ios/TNSSideDrawer.framework/TNSSideDrawer -r -o /Users/user/Library/Developer/Xcode/DerivedData/xxxcommobile-dvfmouoselmuzbdcyewzxtbiifmz/Build/Intermediates.noindex/ArchiveIntermediates/xxxcommobile/InstallationBuildProductsLocation/Applications/xxxcommobile.app/Frameworks/TNSSideDrawer.framework/TNSSideDrawer 
warning: skipping copy phase strip, binary is code signed: /Users/user/builds/r9xYjo8J/0/xxx/xxxcom-mobile/node_modules/nativescript-ui-listview/platforms/ios/TNSListView.framework/TNSListView (in target 'xxxcommobile' from project 'xxxcommobile')
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/bitcode_strip /Users/user/builds/r9xYjo8J/0/xxx/xxxcom-mobile/node_modules/nativescript-ui-listview/platforms/ios/TNSListView.framework/TNSListView -r -o /Users/user/Library/Developer/Xcode/DerivedData/xxxcommobile-dvfmouoselmuzbdcyewzxtbiifmz/Build/Intermediates.noindex/ArchiveIntermediates/xxxcommobile/InstallationBuildProductsLocation/Applications/xxxcommobile.app/Frameworks/TNSListView.framework/TNSListView 
warning: skipping copy phase strip, binary is code signed: /Users/user/builds/r9xYjo8J/0/xxx/xxxcom-mobile/node_modules/nativescript-ui-core/platforms/ios/TNSCore.framework/TNSCore (in target 'xxxcommobile' from project 'xxxcommobile')
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/bitcode_strip /Users/user/builds/r9xYjo8J/0/xxx/xxxcom-mobile/node_modules/nativescript-ui-core/platforms/ios/TNSCore.framework/TNSCore -r -o /Users/user/Library/Developer/Xcode/DerivedData/xxxcommobile-dvfmouoselmuzbdcyewzxtbiifmz/Build/Intermediates.noindex/ArchiveIntermediates/xxxcommobile/InstallationBuildProductsLocation/Applications/xxxcommobile.app/Frameworks/TNSCore.framework/TNSCore 
warning: skipping copy phase strip, binary is code signed: /Users/user/builds/r9xYjo8J/0/xxx/xxxcom-mobile/node_modules/nativescript-plugin-firebase/platforms/ios/TNSCrashlyticsLogger.framework/TNSCrashlyticsLogger (in target 'xxxcommobile' from project 'xxxcommobile')
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/bitcode_strip /Users/user/builds/r9xYjo8J/0/xxx/xxxcom-mobile/node_modules/nativescript-plugin-firebase/platforms/ios/TNSCrashlyticsLogger.framework/TNSCrashlyticsLogger -r -o /Users/user/Library/Developer/Xcode/DerivedData/xxxcommobile-dvfmouoselmuzbdcyewzxtbiifmz/Build/Intermediates.noindex/ArchiveIntermediates/xxxcommobile/InstallationBuildProductsLocation/Applications/xxxcommobile.app/Frameworks/TNSCrashlyticsLogger.framework/TNSCrashlyticsLogger 
warning: skipping copy phase strip, binary is code signed: /Users/user/builds/r9xYjo8J/0/xxx/xxxcom-mobile/node_modules/nativescript-local-notifications/platforms/ios/LocalNotificationsPlugin.framework/LocalNotificationsPlugin (in target 'xxxcommobile' from project 'xxxcommobile')
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/bitcode_strip /Users/user/builds/r9xYjo8J/0/xxx/xxxcom-mobile/node_modules/nativescript-local-notifications/platforms/ios/LocalNotificationsPlugin.framework/LocalNotificationsPlugin -r -o /Users/user/Library/Developer/Xcode/DerivedData/xxxcommobile-dvfmouoselmuzbdcyewzxtbiifmz/Build/Intermediates.noindex/ArchiveIntermediates/xxxcommobile/InstallationBuildProductsLocation/Applications/xxxcommobile.app/Frameworks/LocalNotificationsPlugin.framework/LocalNotificationsPlugin 
warning: skipping copy phase strip, binary is code signed: /Users/user/builds/r9xYjo8J/0/xxx/xxxcom-mobile/node_modules/nativescript-barcodescanner/platforms/ios/BarcodeScannerFramework.framework/BarcodeScannerFramework (in target 'xxxcommobile' from project 'xxxcommobile')
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/bitcode_strip /Users/user/builds/r9xYjo8J/0/xxx/xxxcom-mobile/node_modules/nativescript-barcodescanner/platforms/ios/BarcodeScannerFramework.framework/BarcodeScannerFramework -r -o /Users/user/Library/Developer/Xcode/DerivedData/xxxcommobile-dvfmouoselmuzbdcyewzxtbiifmz/Build/Intermediates.noindex/ArchiveIntermediates/xxxcommobile/InstallationBuildProductsLocation/Applications/xxxcommobile.app/Frameworks/BarcodeScannerFramework.framework/BarcodeScannerFramework 

As far as i read thats an IOS linking issue and the Project settings for the (signed) release build is not correct.
It seems it tries to strip debug symbols from the release ipa, which is it not allowed because the ipa is already signed..

  1. To remove the Warning it can set that the Project is not doing this on release build (https://stackoverflow.com/questions/5494920/xcode-4-archive-warning-to-skip-copy-phase/7915911#7915911)

But the question overall is why (at least it seems so) debug symbols reach the release .ipa file..

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

调研方向

首先重现 tns build ios --clean --for-device --env.aot --env.report --env.hiddenSourceMap ... --release 命令,并检查列出的 NativeScript 框架的 Xcode 警告。将 release 构建的符号剥离和签名设置与所引用的 Xcode 指南进行比较;完成的标准是说明调试符号是否会进入 release IPA,并定义一种受支持的更改,在不破坏签名的情况下移除这些警告。

由索引模型根据 Issue 内容生成。

评估

技术栈
ios, javascript
领域
cli, mobile
Issue 类型
缺陷
难度
4/5
预计耗时
3-5 天
活跃度
停滞
描述清晰度
需要澄清
新手友好度
20/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。