NativeScript / NativeScript/nativescript-cli

Skipping copy phase strip, binary is code signed IOS

Abierto
#5,334 3 comentarios 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Lenguaje dominante
JavaScript
Estrellas
1.1k
Forks
204
Merge medio
1 d 9 h
PR fusionados (30 d)
8

Descripción

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..

Guía de contribución

Abrir la guía de contribución

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Línea de trabajo

Empieza reproduciendo el comando tns build ios --clean --for-device --env.aot --env.report --env.hiddenSourceMap ... --release e inspecciona las advertencias de Xcode para los frameworks de NativeScript indicados. Compara la eliminación de símbolos y la configuración de firma de la compilación de release con la guía de Xcode referenciada; se considera terminado cuando se explique si los símbolos de depuración llegan al IPA de release y se defina un cambio compatible que elimine las advertencias sin romper la firma.

Escrito por el modelo de indexación a partir del texto del issue.

Evaluación

Stack tecnológico
ios, javascript
Área
cli, mobile
Tipo de issue
Error
Dificultad
4/5
Tiempo estimado
3-5 días
Estado de actividad
Estancado
Claridad
Necesita aclaración
Aptitud para principiantes
20/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.