NativeScript / NativeScript/nativescript-cli
Custom plugin link issue in Xcode
Personne n'a encore pris cette issue.
- Langage dominant
- JavaScript
- Étoiles
- 1.1k
- Forks
- 204
- Merge moyen
- 1 j 9 h
- PR mergées (30 j)
- 8
Description
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
Guide de contribution
Ouvrir le guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Piste de recherche
Commencez par reproduire le flux tns plugin add ./mywork/third-party-package/nativescript-mylib-1.0.0.tgz et construire le projet Xcode. Examinez comment le fichier mylib.a empaqueté est ajouté à Linked Frameworks and Binaries ; c’est terminé lorsque le projet lie -lMYLIB sans supprimer puis rajouter manuellement la bibliothèque avec « copy items if needed » sélectionné.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- ios
- Domaine
- cli, mobile
- Type d'issue
- Bug
- Difficulté
- 4/5
- Temps estimé
- 3-5 jours
- Activité
- À l'abandon
- Clarté
- Plutôt claire
- Accessibilité débutants
- 35/100