NativeScript / NativeScript/nativescript-cli

Skipping copy phase strip, binary is code signed IOS

Offen
#5,334 3 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

Vorherrschende Sprache
JavaScript
Sterne
1.1k
Forks
204
Ø Merge
1 T. 9 Std.
Gemergte PRs (30 T.)
8

Beschreibung

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

Beitragsleitfaden

Beitragsleitfaden öffnen

Erste Schritte

  1. Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
  3. Forke das Repository und arbeite in einem Branch.
  4. Öffne einen Pull Request, der die Issue-Nummer nennt.

Rechercherichtung

Beginne damit, den Befehl tns build ios --clean --for-device --env.aot --env.report --env.hiddenSourceMap ... --release zu reproduzieren, und prüfe die Xcode-Warnungen für die aufgeführten NativeScript-Frameworks. Vergleiche das Strippen von Symbolen und die Signiereinstellungen des Release-Builds mit der referenzierten Xcode-Anleitung; abgeschlossen bedeutet, zu erklären, ob Debug-Symbole in das Release-IPA gelangen, und eine unterstützte Änderung zu definieren, die die Warnungen entfernt, ohne die Signierung zu beeinträchtigen.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
ios, javascript
Bereich
cli, mobile
Issue-Typ
Bug
Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Aktivitätsstatus
Veraltet
Klarheit
Muss geklärt werden
Anfängerfreundlichkeit
20/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.