FormidableLabs / react-native-app-auth

React native bridge for AppAuth - an SDK for communicating with OAuth2 providers

Home Page:https://commerce.nearform.com/open-source/react-native-app-auth

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Fail on Build on linking in dylib

Stophface opened this issue · comments

Issue

I am trying to setup my react native project on another machine. It worked on my old machine, which was a intel Mac. Now I have a silicon M2 Mac. I followed the installation instructions of reaxt-native-app-auth and when I try to build the project I get the following error:

Building for 'iOS-simulator', but linking in dylib (/Users/.../ios/Carthage/Build/iOS/AppAuth.framework/AppAuth) built for 'iOS'
Linker command failed with exit code 1 (use -v to see invocation)

I am not sure what might cause the problem. Looking at the symbols in the Document Tree in xCode (version 15), AppAuth has on my new machine (where I am setting up the project) a different symbol than on my old machine (where it was running before). On my old machine it has the same symbol like StoreKit or JavaScriptCore, but here it has this 'executable' look. I am not sure if that could be a problem.

Screenshot 2023-12-31 at 12 48 19

I added AppAuth to CopyFiles though...

Screenshot 2023-12-31 at 12 49 28

I had to compile using this workaround https://github.com/Carthage/Carthage/blob/master/Documentation/Xcode12Workaround.md


Environment

  • Platform that you're experiencing the issue on: iOS
  • Your react-native Version: 0.71.7"
  • Your react-native-app-auth Version: 7.0.0
  • Are you using Expo?: No