-
Notifications
You must be signed in to change notification settings - Fork 24
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
Adding support for Catalyst (Running iOS framework on macOS) #190
Comments
Using https://github.com/leetal/ios-cmake/pull/97/files, there may be a way. This could be done at the same time as adding the binary for the M1 platform. |
@rligocki: do you know how to add catalyst to an xcframework? Is that a a specific @kylewludwig: would you have an idea? I'm looking at https://github.com/mavlink/MAVSDK/pull/1355/files#diff-35869851019316cea57b9e7d8c9cf1fb3cc521708fae85bbe2ed5cac42e2c68dR70-R73 but I'm not sure exactly what it means (i.e. if we need MAC, MAC_ARM64, MAC_CATALYST and MAC_ARM64_CATALYST, or just MAC_CATALYST and MAC_ARM64_CATALYST in the xcframework) |
Oh actually, MAC is a macOS build, and MAC_CATALYST is an iOS build. So I guess that becomes yet another iOS So this may be fairly easy to add 👍. |
Perfect !!! Thanks for fast response. In case of building frameworks I have only experience with Carthage. I didn't have to much time during today to do more research, but as you described and said, whole thing might be easy to change. So do you think that it is only necessary to add new action to build MAC_CATALYST and MAC_ARM64_CATALYST .frameworks and pack them into already existed .xcframework package? |
Yes, I'll try that once my other PR is merged 👍. Would be nice if you could test it then, I'll tag you there 😊 |
Yeap, as soon as it will be available, I can add new version of MAVSDK with new Catalyst support to my app. Is it possible to build it with catalyst support by my own? |
I gave it a quick shot here, where I got the following error:
@rligocki are you willing to debug this? You can use my PR as a starting point: mavlink/MAVSDK#1356. I won't spend more time on this as I don't know what's happening and I don't need Catalyst, but I'm happy to help if you manage to fix that issue 👍. |
I will try. As you said, I am the one who want this feature, so let me try debug it. |
Is it possible to build MavSDk projects for macOS? I really want to use a midi controller as part of the project and it would be way easier to implement as a mac app vs an ios app. |
I haven't heard of anyone doing it, but I think it should work. At least we do include a macos framework in the xcframework we publish: https://github.com/mavlink/MAVSDK/blob/main/.github/workflows/main.yml#L508-L509 Did you try a macOS project with MAVSDK-Swift already? |
@JonasVautherin Thank you for the quick response. I have made a multiplatform project and added the framework as described at: https://github.com/mavlink/MAVSDK-Swift. Without any additional code, the resulting project builds and runs on iPad but not on macOS due to the signing error. The signing error is most likely caused by the 'Could not resolve framework symlink' warning I am seeing. That is what led me to questioning the framework's ability to run on macOS. Couldn't resolve framework symlink for '/Users/USERNAME/Library/Developer/Xcode/DerivedData/JGC-fytiamkuynyqfrbdlweehjflgvev/SourcePackages/artifacts/mavsdk-swift/mavsdk_server/mavsdk_server.xcframework/macos-x86_64/mavsdk_server.framework/Versions/Current' In the file you posted I see a NO in the build options. Does that need to change to YES? Is there a way to add a target framework to the xcodegen command?
|
What about Catalyst technology. Catalyst allows running iOS apps on macOS
… On 11. 10. 2023, at 23:20, Joe ***@***.***> wrote:
@JonasVautherin <https://github.com/JonasVautherin> Thank you for the quick response. I have made a multiplatform project and added the framework as described at: https://github.com/mavlink/MAVSDK-Swift. Without any additional code, the resulting project builds and runs on iPad but not on macOS due to the signing error. The signing error is most likely caused by the 'Could not resolve framework symlink' warning I am seeing. That is what led me to questioning the framework's ability to run on macOS.
In the file above I see a NO in the build options. Does that need to change to YES? Is there a way to add a target framework to the xcodegen command?
macOS:
name: ${{ matrix.name }}
runs-on: macos-12
strategy:
matrix:
include:
- name: macOS
build-framework: OFF
- name: macOS-framework
build-framework: ON
—
Reply to this email directly, view it on GitHub <#190 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/ACKAQCCJRBRDDHR4OZ5ZPCLX64EQHANCNFSM4ZAEJXKA>.
You are receiving this because you were mentioned.
|
Do you mean "ON"?
Does that mean that it does build for a macOS target? That would be something already 😊
Does MAVSDK-Swift work with Catalyst now? I lost track of that. Anyway it would be nice if it worked for macOS apps, I don't see a reason why not (and we already build the macOS framework). |
Hey guys,
few weeks ago I started development of custom design ground control station software based on MAVSDK. Our main target is iOS devices. Also I started to think about using Catalyst technology to run this app also on macOS. Problems is that when I enabled this feature in xcode, I get error:
Showing Recent Messages While building for Mac Catalyst, no library for this platform was found in '/Users/roman/Library/Developer/Xcode/DerivedData/AirUAWARE-fvgjbgnijdphyfgoroqjlvvbhtmf/SourcePackages/artifacts/MAVSDK_Swift/mavsdk_server.xcframework'.
From this error message it looks like there is need to build MAVSDK for both architectures and pack it inside xcframework. Does anybody have some experiences in this topic? Maybe this could be done just by modifying github action.
The text was updated successfully, but these errors were encountered: