medallia / digital-ios-sdk

MIT License
5 stars 5 forks source link

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

Open sorarco opened 5 months ago

sorarco commented 5 months ago

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 commented 5 months ago

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 commented 4 months ago

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 commented 4 months ago

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

SanderNiesten commented 4 months ago

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 commented 4 months ago

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,