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

Support arm64 simulator in .xcframework and SPM package #80

Closed
bobergj opened this issue Feb 4, 2021 · 4 comments
Closed

Support arm64 simulator in .xcframework and SPM package #80

bobergj opened this issue Feb 4, 2021 · 4 comments
Labels

Comments

@bobergj
Copy link

bobergj commented Feb 4, 2021

Is your feature request related to a problem? Please describe.

The .xcframework does not support the arm64 iOS Simulator (the simulator on M1 Macs).

As we eventually get M1 Macs for our developers, without fixing this, they won't be able to build and run our app on the simulator.

Describe the solution you'd like

Build the .xcframwork with an arm64 iOS simulator slice.
A correct .xcframework, supporting the arm64 simulator, would contain Info.plist entries as follows:

<dict>
	<key>DebugSymbolsPath</key>
	<string>dSYMs</string>
	<key>LibraryIdentifier</key>
	<string>ios-arm64_i386_x86_64-simulator</string> <==========
	<key>LibraryPath</key>
	<string>KlarnaMobileSDK.framework</string>
	<key>SupportedArchitectures</key>
	<array>
	        <string>arm64</string>      <============
		<string>i386</string>
		<string>x86_64</string>
	</array>
	<key>SupportedPlatform</key>
	<string>ios</string>
	<key>SupportedPlatformVariant</key>
	<string>simulator</string>
</dict>

Compare to: https://github.com/klarna/klarna-mobile-sdk/blob/master/ios/XCFramework/full/universal/KlarnaMobileSDK.xcframework/Info.plist

@polar133 polar133 added investigating Bug/feature is being investigated. ios labels Feb 4, 2021
@bobergj
Copy link
Author

bobergj commented Mar 18, 2021

How's the investigation going? We have several developers with M1 Macs that have to run Xcode under Rosetta due to this.

@KirbyInGitHub
Copy link

How's the investigation going?

@polar133
Copy link
Contributor

polar133 commented Apr 1, 2021

Hi, sorry for the delay. Next release will be available.

@polar133
Copy link
Contributor

Hi @KirbyInGitHub, @bobergj. Sorry for the delay on this update. Our latest release (2.0.37) should support arm64 in xcframework (https://github.com/klarna/klarna-mobile-sdk-spm). Please, give a try and let us know how did it went with this version. I will close the ticket but if there is any issue, feel free to open it again.

@polar133 polar133 removed the investigating Bug/feature is being investigated. label Apr 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants