Notalib / nativescript-webview-ext

Nativescript plugin with extended WebView functionality
Apache License 2.0
76 stars 37 forks source link

IOS: NotaWebViewExt.xcframework is missing architecture(s) required by this target (arm64) #95

Closed leganz closed 3 years ago

leganz commented 3 years ago

Which platform(s) does your issue occur on?

Please, provide the following version numbers that your issue occurs with:

Please, tell us how to recreate the issue in as much detail as possible.

Working iOS 13 App with the webview => update to 6.5.2 and using Xcode 12. Try to build the app => crash

Is there any code involved?

No changes since iOS 13 version.

Using iOS 13 the app worked well. Yesterday when ios 14 was released the app crashed. After updating the dependencies to the list above i get the following error message:

note: '$PATH/node_modules/@nota/nativescript-webview-ext/platforms/ios/NotaWebViewExt.xcframework' is missing architecture(s) required by this target (arm64), but may still be link-compatible. (in target '$NAMEOFAPP' from project '$NAMEOFAPP')
note: '$PATH/node_modules/@nota/nativescript-webview-ext/platforms/ios/NotaWebViewExt.xcframework' is missing architecture(s) required by this target (arm64), but may still be link-compatible. (in target '$NAMEOFAPP' from project '$NAMEOFAPP')

(i reduced the output / $PATH and $NAMEOFAPP are plaeholder in der output above).

It seems that the crash is related to problem. I am not quite sure if I need to change something or the package has a problem. I hope you can help me out

leganz commented 3 years ago

I found out that my issue is not related to the note: Nevertheless if someone encounter the same issue =>

adding those lines to the build.xcconfig removed the note from the output...

EXCLUDED_ARCHS__EFFECTIVE_PLATFORM_SUFFIX_simulator__NATIVE_ARCH_64_BIT_x86_64=arm64 arm64e armv7 armv7s armv6 armv8
EXCLUDED_ARCHS=$(inherited) $(EXCLUDED_ARCHS__EFFECTIVE_PLATFORM_SUFFIX_$(EFFECTIVE_PLATFORM_SUFFIX)__NATIVE_ARCH_64_BIT_$(NATIVE_ARCH_64_BIT))