signalfx/splunk-otel-ios

Could not find module 'SplunkOtel' for target 'x86_64-apple-ios-simulator'; found: arm64, arm64-apple-ios-simulator

Opened this issue · 4 comments

I am using cocoapod and added Splunk through SPM in my project target. But after importing the framework in Appdelegate or anywhere it throws this error -> Could not find module 'SplunkOtel' for target 'x86_64-apple-ios-simulator'; found: arm64, arm64-apple-ios-simulator.

I am using M1 chip Mac book
My deployment target is 11.0

Could you please suggest a way to accomplish this? Or is it not supported?

Hi we also encountered this issue. Any updates on this?

Hello, is this still a problem you're encountering? If so, can you tell us more details about your setup so that we can better diagnose the problem? And if not, can you let us know what you did to solve the problem so we can help other users who may also run into this? Thanks!

Current workaround we did is to not run splunk related codes in simulator

#if !targetEnvironment(simulator)
// Splunk related codes
#endif

I'm glad you found a workaround. I could not reproduce this on my M1 machine. If you have additional details for reproduction we can re-open and see if we can come up with a solution that doesn't require a workaround. In particular, can you tell me the settings you have under the Architectures section in Build Settings, as well as what you have set for "Always Embed Swift Standard Libraries"? Feel free to include any other settings you may think relevant as well.