NativeScript / NativeScript/nativescript-cli
Custom plugin link issue in Xcode
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
From @smartsanja2013 on March 30, 2018 4:31
I have created a native ios plugin and exported as .tgz
Now I have added the plugin using this command
tns plugin add ./mywork/third-party-package/nativescript-mylib-1.0.0.tgz
But when building the Xcode project, I am getting following error
ld: library not found for -lMYLIB
clang: error: linker command failed with exit code 1 (use -v to see invocation)
But, In xcode project, I can see mylib.a already being added in to Linked Frameworks and Binaries
In order to build the Xcode project,
Every time I need to delete the mylib.a from Framworks folder in xcode and need to add again manually (with the "copy items if needed" option selected)
Is there any workaround to solve this problem?
Copied from original issue: NativeScript/NativeScript#5601
Beitragsleitfaden
Erste Schritte
- Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
- Forke das Repository und arbeite in einem Branch.
- Öffne einen Pull Request, der die Issue-Nummer nennt.
Rechercherichtung
Beginne damit, den Ablauf tns plugin add ./mywork/third-party-package/nativescript-mylib-1.0.0.tgz nachzustellen und das Xcode-Projekt zu erstellen. Untersuche, wie die gepackte mylib.a zu Linked Frameworks and Binaries hinzugefügt wird; abgeschlossen ist die Aufgabe, wenn das Projekt -lMYLIB verlinkt, ohne die Bibliothek manuell zu löschen und erneut hinzuzufügen, wobei „copy items if needed“ ausgewählt ist.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- ios
- Bereich
- 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