Skip to content

Support watchOS device #48

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

Closed
crazytonyli opened this issue Mar 24, 2024 · 2 comments
Closed

Support watchOS device #48

crazytonyli opened this issue Mar 24, 2024 · 2 comments
Labels

Comments

@crazytonyli
Copy link
Contributor

The xcframework only support watchOS simulator, not real devices.

You can find out what devices/simulators the xcframework support by looking into target/libwordpressFFI.xcframework/Info.plist after running make xcframework.


It appears xcodebuild -create-xcframework doesn't support arm64_32 library.

$ make xcframework
...
$ xcodebuild -create-xcframework -library target/arm64_32-apple-watchos/release/libwordpress.a -headers target/swift-bindings/headers -output test.xcframework
error: unable to determine the platform for the given binary '.../target/arm64_32-apple-watchos/release/libwordpress.a'; check your deployment version settings

Maybe real watchOS device was left out because the above issue? /cc @jkmassel

@crazytonyli
Copy link
Contributor Author

I think I have found the cause and have created a fix in rust-lang/rust#123446.

@crazytonyli
Copy link
Contributor Author

Fixed by #61

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

2 participants