-
Notifications
You must be signed in to change notification settings - Fork 640
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
XCode 12 consequences on my model #930
Comments
same error |
Hello, thank you very much for the fast answer. I am dinosaur C++ dev, but baby MacOS. The app was for MacOS only. I just try to load the models by the code, I described on the top. The update was automatic, my Xcode version was updated during night. I did not try to delete and redownload from the App Store. |
I don't see any issue in your steps. All seems reasonable. We will keep looking. |
@timocafe what is the macOS deployment target set to in Project -> Info -> Deployment Target? |
thank you for reply. my Xcode version is Xcode_12_GM_seed(12A7209) and download from developer.apple.com. The app is for Mac |
@baaj2109 @timocafe we root-caused this to a mismatch in SDKs in Xcode 12.0 GM. The official note on https://developer.apple.com/download/release/:
CoreML compiler in Xcode 12.0 GM is generating code that has symbols available only on macOS BigSur causing the compilation issue. If the goal is to build a catalyst or macOS-only app with Xcode 12.0, please follow this workaround: Turn off code generation in the project, use This issue is resolved with latest beta release of Xcode 12.2, which can be found here: https://developer.apple.com/services-account/download?path=/Developer_Tools/Xcode_12.2_beta/Xcode_12.2_beta.xip |
Indeed it works, I turnoff the CoreML generation, and import the code manually. Thank you, have a good day |
How can I generate swift classes? |
I believe it may be |
Sorry @oskarko - my mistake. I fixed the earlier comment. Here's the correct command line arguments.
|
How does one disable code generation for coreml models? |
To disable code generation in Xcode 12 you should be able to:
Alternatively I believe in your targets build settings you can set COREML_CODEGEN_LANGUAGE to "None" |
Thank you, @msiracusa ! |
@anilkatti I did exactly this and now i get an error: Cannot call value non-function type 'module<...>'. I am a noob |
…apple#930) * add community pipeline docs * fix style in code snippets (lol) * clean up loading docs * add license to doc files * fix some weird links
❓Question
During the night my Xcode has been updated, and currently I am not anymore able to initialize my model in swift.
I get the error:
Type 'MLModel' has no member '__loadContents'
A user reports similar issue in StackOverflow: https://stackoverflow.com/questions/63917164/ml-build-error-for-catalyst-xcode-12-gm
my workflow
Convert my own model developed/obtained using TF. Plug it to Hello World MacOS swift App
swift code
System Information
The text was updated successfully, but these errors were encountered: