ProgressNS / nativescript-ui-feedback

This repository is used for customer feedback regarding Telerik UI for NativeScript. The issues system here is used by customers who want to submit their feature requests or vote for existing ones.
Other
115 stars 21 forks source link

Build for simulator on Apple Silicon #1526

Open wietsedv opened 3 years ago

wietsedv commented 3 years ago

Please, provide the details below:

Tell us about the problem

Whenever I try to build a Nativescript application with nativescript-ui-listview for the iOS Simulator on my Apple M1 machine, the build fails with the following error:

Xcode build...
No issues found.
objc[48970]: Class AMSupportURLConnectionDelegate is implemented in both /usr/lib/libauthinstall.dylib (0x20594d160) and /System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x1155b42b8). One of the two will be used. Which one is undefined.
objc[48970]: Class AMSupportURLSession is implemented in both /usr/lib/libauthinstall.dylib (0x20594d1b0) and /System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x1155b4308). One of the two will be used. Which one is undefined.
ld: building for iOS Simulator, but linking in dylib built for iOS, file '/path/to/project/node_modules/nativescript-ui-listview/platforms/ios/TNSListView.framework/TNSListView' for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
note: Using new build system
note: Building targets in parallel
note: Using codesigning identity override: 
note: Planning build
note: Analyzing workspace
note: Constructing build description
note: Build preparation complete
/path/to/project/platforms/ios/myproject.xcodeproj: warning: Building for iOS Simulator, but the linked and embedded framework 'TNSListView.framework' was built for iOS + iOS Simulator. (in target 'myproject' from project 'myproject')
/path/to/project/platforms/ios/myproject.xcodeproj: warning: Building for iOS Simulator, but the linked and embedded framework 'TNSCore.framework' was built for iOS + iOS Simulator. (in target 'myproject' from project 'myproject')
** BUILD FAILED **

I suppose the actual error is on line 5/6. My interpretation of the problem is that the ARM64 platform is equated somewhere with iOS while in my case it should be an ARM64 Simulator. As a result I am unable to get a working build for my Simulator.

Which platform(s) does your issue occur on?

iOS (Simulator on a M1 Macbook Pro)

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

crechberger commented 3 years ago

same issue! Also with the nativescript-ui-sidedrawer library!