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

Building failed using the sdk ( third party from react native ), Error unsupported Swift architecture #11

Open
sorarco opened this issue Apr 4, 2024 · 5 comments

Comments

@sorarco
Copy link

sorarco commented Apr 4, 2024

We are using the third-party module from Medallia provided for React Native, which utilizes the Medallia Digital iOS SDK (MedalliaDigitalSDK.xcframework). It is only possible to build and run successfully using an physical device. The error occurs when attempting to build and run from simulators on the arm( included rosetta as destination ) or Intel x86_64 architecture.
medallia-digital-rn (4.4.0)
XCode Version 15.2
iPhone 15 Simulator, iOS 17.2
"react-native": "0.68.0",

@OriMedallia
Copy link
Collaborator

Hi Rodrigo,
Please contact your Medallia Digital Expert (CSM) and share with them all the information so they can raise this issue and it'll be prioritized for the team.
Thanks,
Ori

@SanderNiesten
Copy link

SanderNiesten commented May 2, 2024

Same problem here using the RN library, with the following setup:
"medallia-digital-rn": 4.4.1
Xcode: 15.3
Iphone simulator: iOS 17.4
react-native: 0.72.13

@OriMedallia
Copy link
Collaborator

Hi Sander,
Just to make sure, we're talking about Intel processor (and rosetta), right?
Thanks,
Ori

@SanderNiesten
Copy link

SanderNiesten commented May 2, 2024

Hi Ori,

Sorry, there are differences. If you want I can open another issue.
Chip: Apple M2 Pro
MacOS 14.4.1

"medallia-digital-rn": 4.4.1
Xcode: 15.3
Iphone simulator: iOS 17.4
react-native: 0.72.13

Error:
node_modules/medallia-digital-rn/ios/MDWrapper/Medallia.m:9:
node_modules/medallia-digital-rn/ios/MDWrapper/Medallia.h:12:

node_modules/medallia-digital-rn/ios/libs/MedalliaDigitalSDK/MedalliaDigitalSDK.xcframework/ios-arm64/MedalliaDigitalSDK.framework/Headers/MedalliaDigitalSDK-Swift.h:896:2: error: unsupported Swift architecture

We've update from 4.2.0 to 4.4.1

Happens when building on simulator. Cannot test with a real device right now unfortunately.

@OriMedallia
Copy link
Collaborator

I see, so since it sounds like a different root cause, please contact your Medallia Digital Expert (CSM) and share with them all the information so they can raise this issue and it'll be prioritized for the engineering team.
Thanks,

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

No branches or pull requests

3 participants