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

Unable to run on iOs Simulator with XCode 13 #251

Open
Skycoder42 opened this issue Jan 24, 2022 · 1 comment
Open

Unable to run on iOs Simulator with XCode 13 #251

Skycoder42 opened this issue Jan 24, 2022 · 1 comment

Comments

@Skycoder42
Copy link

When trying to run a project with swift-sodium on XCode 13, targeting the iOs Simulator, you will get an error message containing

building for iOS Simulator, but linking in object file built for iOS, for architecture arm64

According to https://stackoverflow.com/a/63955114, this is an issue with M1 support and can be fixed by adding the following lines to to the Podspec:

s.pod_target_xcconfig = { 'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'arm64' }
s.user_target_xcconfig = { 'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'arm64' }

Note: I have no clue about XCode and Pods, this seems to be the problem and helped me fix the issue locally.

@enayatinfo
Copy link

enayatinfo commented Aug 4, 2023

When trying to run a project with swift-sodium on XCode 13, targeting the iOs Simulator, you will get an error message containing

building for iOS Simulator, but linking in object file built for iOS, for architecture arm64

According to https://stackoverflow.com/a/63955114, this is an issue with M1 support and can be fixed by adding the following lines to to the Podspec:

s.pod_target_xcconfig = { 'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'arm64' }
s.user_target_xcconfig = { 'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'arm64' }

Note: I have no clue about XCode and Pods, this seems to be the problem and helped me fix the issue locally.

Thanks. this problem already exists so
In Flutter:
add this line in pod_install PodFile:
installer.pods_project.build_configurations.each do |config| config.build_settings["EXCLUDED_ARCHS[sdk=iphonesimulator*]"] = "arm64" end

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

No branches or pull requests

2 participants