exponea / exponea-ios-sdk

MIT License
19 stars 27 forks source link

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

Closed litephilip closed 7 months ago

litephilip commented 7 months ago

Can't start build process due to this problem: Could not find module 'ExponeaSDK' for target 'x86_64-apple-ios-simulator'; found: arm64-apple-ios-simulator at: /Users/name/Library/Developer/Xcode/DerivedData//Index.noindex/Build/Products/Debug-iphonesimulator/ExponeaSDK.swiftmodule

Tried to update dependency to pod "ExponeaSDK", "~> 2.20.0", and changed all necessary config in my Xcode project. Any advice to solve this problem?

Xcode version: 15.0.1 Computer: Mac M1

adam1929 commented 7 months ago

Hi @litephilip thank you for reporting. This is obviously issue with supported architectures list. For SDK side, we are using ARCHS_STANDARD for long time as is recommend. Value for that label for XCode 15 is only 'arm64'. I assume that you are working on latest MacOS hence you are using latest XCode 15; so any talk about using XCode 14 is not helpful for you (is not supported by Sonoma). Anyway, please try to turn off only supported archs in Podfile:

# Append to your Podfile
post_install do |installer_representation|
    installer_representation.pods_project.targets.each do |target|
        target.build_configurations.each do |config|
            config.build_settings['ONLY_ACTIVE_ARCH'] = 'NO'
        end
    end
end

Exponea SDK should be buildable also for x86_64 as is supported by XCode 14. Also please clear your DerivedData directory to be sure that app and SDK is rebuilded :-) If does not help, please re-open this thread or (recommended) ask support for help. Thank you

litephilip commented 7 months ago

Okey so I removed ExponeaSDK från dependencies manually and reinstalled it through CoCoaPods. That solved the problem!

xcibik00 commented 6 months ago

Hi @litephilip, we also updated it in 2.21.0