Skip to content
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

Build failed on Apple Silicon #1534

Open
crechberger opened this issue Jun 30, 2021 · 3 comments
Open

Build failed on Apple Silicon #1534

crechberger opened this issue Jun 30, 2021 · 3 comments

Comments

@crechberger
Copy link

crechberger commented Jun 30, 2021

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:

  • Progress NativeScript UI plugin version: 9.0.3.
  • CLI: 8.0.2
  • @nativescript/core: 8.0.0
  • @nativescript/ios: 8.0.0

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
Copy link

mpcref commented Nov 9, 2021

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

@manuel-dancingly
Copy link

any news on this?

@gabrielbiga
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants