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 failed on Apple Silicon #1534

Open crechberger opened 3 years ago

crechberger 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-sidedrawer for the iOS Simulator on my Apple M1 machine, the build fails with the following error:

Xcode build...

objc[30648]: Class AMSupportURLConnectionDelegate is implemented in both ?? (0x204eec188) and ?? (0x1145942b8). One of the two will be used. Which one is undefined.

objc[30648]: Class AMSupportURLSession is implemented in both ?? (0x204eec1d8) and ?? (0x114594308). 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-sidedrawer/platforms/ios/TNSSideDrawer.framework/TNSSideDrawer' 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/testproject.xcodeproj: warning: Building for iOS Simulator, but the linked and embedded framework 'TNSCore.framework' was built for iOS + iOS Simulator. (in target 'testproject' from project 'testproject')
/path/to/project/platforms/ios/testproject.xcodeproj: warning: Building for iOS Simulator, but the linked and embedded framework 'TNSSideDrawer.framework' was built for iOS + iOS Simulator. (in target 'testproject' from project 'testproject')

** BUILD FAILED **

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:

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

  1. Create a new test project on an Apple Silicon M1 and add the dependency "nativescript-ui-sidedrawer": "9.0.3" to your package.json
  2. Build and run the project
mpcref commented 2 years ago

I'm experiencing a similar issue. Does anyone know a work-around for this?

manuel-dancingly commented 2 years ago

any news on this?

gabrielbiga commented 6 months ago

The workaround to this is build the entire app throughout Rosetta. Clean your cocoapods installation, and rebuild everything using the Rosetta command. Its not the ideal way, but it is what it is. I'm removing all RAD components from the APP as its not maintained anymore.