.net - How to generate an Xcode project from a MAUI iOS project? - Stack Overflow

I am trying to link an Objective-C static library against my MAUI iOS app and be able to debug it from

I am trying to link an Objective-C static library against my MAUI iOS app and be able to debug it from Xcode. In order to do that, I'd need to generate the Xcode project out of the MAUI one. I cannot find any relevant information under the MAUI docs, other than a reference to an open sourced project called xcsync. However, when I run the tool, the project gets generated but it won't event build. (Multiple targets producing Info.plist, and missing MAUI class references)

xcsync generate \
  --project ./MyMauiApp.csproj \
  --target-framework-moniker net9.0-ios -f \
  --verbosity Detailed

Is generating the Xcode project even possible?

I am trying to link an Objective-C static library against my MAUI iOS app and be able to debug it from Xcode. In order to do that, I'd need to generate the Xcode project out of the MAUI one. I cannot find any relevant information under the MAUI docs, other than a reference to an open sourced project called xcsync. However, when I run the tool, the project gets generated but it won't event build. (Multiple targets producing Info.plist, and missing MAUI class references)

xcsync generate \
  --project ./MyMauiApp.csproj \
  --target-framework-moniker net9.0-ios -f \
  --verbosity Detailed

Is generating the Xcode project even possible?

Share asked Mar 4 at 8:11 Roberto GarridoRoberto Garrido 1535 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 1

It's not supported. You are not able to generate an Xcode project from a MAUI iOS project.

Note: If you want to link the Objective-C static library into your MAUI project, you have to make a -ios binding project.

Please see Native Library Interop - .NET MAUI Community Toolkit - Community Toolkits for .NET | Microsoft Learn

Getting Started with Native Library Interop - Community Toolkits for .NET | Microsoft Learn

Creating Bindings for .NET MAUI with Native Library Interop - .NET Blog

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745055762a4608657.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信