-
Notifications
You must be signed in to change notification settings - Fork 822
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
Define settings of mlmodel files #1132
Comments
I believe this is the code which powers this: I too require this change, but for an 'intentdefinition' file, which I want to have look a little something like:
I tried setting it using the sources:
- path: Intents.intentdefinition
attributes:
- private_codegen |
Found what was broken in my code after looking at #583 - this issue can probably be closed down as it is supported. For the original author (@WesleyJacobsMP), add the following YAML to your configuration under the target in which the file is added. sources:
- path: PATH/TO/digits.mlmodel
attributes:
- no_codegen The mistake I was making above was that the full configuration had numerous sources, and they're evaluated in a top-down approach with the ones at the top taking higher priority. So I needed to move my Intents attributes property further up the sources array. Here's my full sources YAML now. sources:
- Project.xcassets
- path: Project/Ext/Widget/Intents.intentdefinition
attributes:
- private_codegen
- Project/Ext/Widget Notably, the third item in this array, was at position two, which was overriding the attributes I was trying to specify. |
Glad you got this sorted @Sherlouk, I'll close this then |
I've currently been unable to find how to keep my settings of mlmodel files when running xcodegen.
The change done in xcode (Change the model class to not be generated in "Target Membership") results in the following addition in the project file:
BAF7A3E854C74A605097D91F /* digits.mlmodel in Sources */ = {isa = PBXBuildFile; fileRef = FA1AF80468D8D39346D72A20 /* digits.mlmodel */; settings = {ATTRIBUTES = (no_codegen, ); }; };
I want to be able to keep that last part (the settings) when running xcodegen.
The text was updated successfully, but these errors were encountered: