-
-
Notifications
You must be signed in to change notification settings - Fork 196
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
create plugin by static static libraries error #2967
Comments
From @NickIliev on July 4, 2017 12:2 @xiaochong44 the static library you are using is not build for all required architectures and you are trying to build for architecture that is missing (e.g. you are building on real device that requires armv7 but the static library is build only for i386). |
From @xiaochong44 on July 5, 2017 13:25 @NickIliev |
From @NickIliev on July 5, 2017 14:1 @xiaochong44 for real devices your static library needs to be built for armv7, arm64, |
From @xiaochong44 on July 5, 2017 14:8 @NickIliev |
From @ivanbuhov on July 5, 2017 14:47 @xiaochong44 The CLI checks each library against a list of required architectures and fails if the binary doesn't contain even one of them. Currently, the list contains To workaround the problem you can merge your existing
This way, the library still won't work on simulators because the |
It tries to predict a linker error and stop earlier, but there are cases where it fails to do so correctly. We now start building without any preliminary checks on libraries and let it fail with whatever error it does. fixes #2967
It tries to predict a linker error and stop earlier, but there are cases where it fails to do so correctly. We now start building without any preliminary checks on libraries and let it fail with whatever error it does. fixes #2967
It tries to predict a linker error and stop earlier, but there are cases where it fails to do so correctly. We now start building without any preliminary checks on libraries and let it fail with whatever error it does. fixes #2967
* Remove iOS static library verification (#3169) It tries to predict a linker error and stop earlier, but there are cases where it fails to do so correctly. We now start building without any preliminary checks on libraries and let it fail with whatever error it does. fixes #2967 * Update Changelog for 3.3.1 release
From @xiaochong44 on July 4, 2017 6:29
I create new plugin by static libraries;
he have three file. jcore-ios-1.1.5.a jpush-ios-3.0.6.a and JPUSHService.h.
tns run ios show error
Processing node_modules failed. Exception: The static library at /Users/feng/AnBangCrmApp/node_modules/nativescript-jpush/platforms/ios/jcore-ios-1.1.5.a is not built for one or more of the following required arch
itectures: armv7, arm64, i386. The static library must be built for all required architectures.
lipo -info show
Architectures in the fat file: /Users/feng/AnBangCrmApp/node_modules/nativescript-jpush/platforms/ios/jcore-ios-1.1.5.a are: armv7 armv7s x86_64 arm64
Copied from original issue: NativeScript/NativeScript#4501
The text was updated successfully, but these errors were encountered: