NativeScript / NativeScript/nativescript-cli

iOS issue with auto app signing while using plugin with custom framework

Offen
#4,691 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

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

Beschreibung

Environment

  • CLI: 5.4.0
  • Cross-platform modules:5.4.1
  • Android Runtime:5.4.0
  • iOS Runtime:5.4.0

Describe the bug
The auto application signing will fail while building a project with tns run ios command where we have a plugin with custom native Framework. The following error will be thrown:

error: Provisioning profile "iOS Team Provisioning Profile: *" is Xcode managed, but signing settings require a manually managed profile. (in target 'demo')
note: Using new build systemnote: Planning buildnote: Constructing build description

It seems that the CLI does not mark the external Frameworks for signing.

Workaround

  1. open <app_name>/app/App_Resources/iOS/build.xcconfig and remove the line where the DEVELOPMENT_TEAM is set up

  2. In the terminal execute tns run ios --provision command. This will print a list of the provisioning profiles, that are available on your machine. In the very first column, the id of the provisions will be printed. This id will be used in the next step.

  3. build the project with tns run ios --provision <provisioning profile id here>.

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 Build mit tns run ios unter Verwendung eines Plugins mit einem benutzerdefinierten nativen Framework zu reproduzieren, und vergleiche ihn anschließend mit dem dokumentierten Workaround --provision. Untersuche das generierte \u003capp_name\u003e/app/App_Resources/iOS/build.xcconfig und das Signierverhalten des externen Frameworks. Die Aufgabe ist abgeschlossen, wenn die automatische Anwendungssignierung erfolgreich ist, ohne DEVELOPMENT_TEAM manuell zu entfernen oder ein Provisioning-Profil auszuwählen.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
ios, javascript
Bereich
build-system, cli, mobile
Issue-Typ
Bug
Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Aktivitätsstatus
Veraltet
Klarheit
Größtenteils klar
Anfängerfreundlichkeit
35/100

Neue Issues direkt in Ihr Postfach

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