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](https://private-user-images.githubusercontent.com/8275981/293503594-39fc85fc-9f52-43d9-9a61-bca43e319f6e.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MDk4NzI0MTEsIm5iZiI6MTcwOTg3MjExMSwicGF0aCI6Ii84Mjc1OTgxLzI5MzUwMzU5NC0zOWZjODVmYy05ZjUyLTQzZDktOWE2MS1iY2E0M2UzMTlmNmUucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDMwOCUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDAzMDhUMDQyODMxWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9OWM3N2Q0NGE2ODk1ZjUyZDMwNGY0M2Y3MWExMGE1MzllYWIxZTQ3YTU0OTc3MGU5MmEzOWJkNzQ1ZjRkZDY5OCZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.BmqcTMmTw7zuh7CeNsb8joXxJI068zaNT_06TCtuaqY)
I added AppAuth to CopyFiles though...
![Screenshot 2023-12-31 at 12 49 28](https://private-user-images.githubusercontent.com/8275981/293503632-b0e701f4-db8a-4bc9-bf3a-a8d1bc8bb649.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MDk4NzI0MTEsIm5iZiI6MTcwOTg3MjExMSwicGF0aCI6Ii84Mjc1OTgxLzI5MzUwMzYzMi1iMGU3MDFmNC1kYjhhLTRiYzktYmYzYS1hOGQxYmM4YmI2NDkucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDMwOCUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDAzMDhUMDQyODMxWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9NDdkMjc3ZDgzYjM3NzVhOTlkOGNmOWM5MDg3NmI4YzY4Y2QzYjM3OTYyYTFhNTk0ZDY3ZTlkMDI5MjRhNGFlMCZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.RlGbaY5Q593DMOCO3vIWQNo_ZpmOjTgf_RUcGUcOIa0)
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