Open carbon-paulc opened 2 years ago
I was experiencing the same, setting everything I wasn't using explicitly to disabled in buildtools.json enabled me to build again for iOS. Not sure which part exactly was causing the problem, the only feature I am using is "appSettings".
@varyamereon Ditto with the appsettings. Just tried this (well all of the ones that appeared in the automatic file) and it didn't work. Would it be possible to check your buildtools.json file to see if there's anything missing? My file below if it helps:
{
"$schema": "https://mobilebuildtools.com/schemas/v2/buildtools.schema.json",
"appSettings": {
"Journey": [
{
"properties": [
{
"name": "ClientId",
"type": "String"
},
{
"name": "ClientSecret",
"type": "String"
}
]
}
]
},
"appConfig": {
"strategy": "TransformOnly",
"disable": true
},
"artifactCopy": {
"disable": true
},
"automaticVersioning": {
"behavior": "PreferBuildNumber",
"environment": "All",
"versionOffset": 0,
"disable": true
},
"css": {
"minify": false,
"bundleScss": false,
"disable": true
},
"images": {
"directories": [],
"conditionalDirectories": {
"Debug": [],
"!Debug": [],
"iOS": [],
"Android": []
},
"disable": true
},
"manifests": {
"token": "$",
"variablePrefix": "Manifest_",
"missingTokensAsErrors": false,
"disable": true
},
"releaseNotes": {
"maxDays": 7,
"maxCommit": 10,
"characterLimit": 250,
"filename": "ReleaseNotes.txt",
"createInRoot": false,
"disable": true
},
"environment": {
"defaults": {},
"configuration": {
"Debug": {}
},
"disable": true
},
"debug": false
}
Here is mine:
{
"$schema": "https://mobilebuildtools.com/schemas/v2/buildtools.schema.json",
"appConfig": {
"disable": true
},
"artifactCopy": {
"disable": true
},
"automaticVersioning": {
"behavior": "Off"
},
"css": {
"disable": true
},
"images": {
"disable": true
},
"manifests": {
"disable": true
},
"appSettings": {
"AppName": [
{
"accessibility": "Internal",
"className": "AppSettings",
"delimiter": ";",
"namespace": ".",
"rootNamespace": null,
"properties": [
{
// properties
}
]
}
]
},
"releaseNotes": {
"disable": true
},
"debug": false
}
Difference I spotted was I set automatic versioning behavior to off
and I don't have a setting for environment.
Hope it helps.
That worked! Tempted to remove bits one by one to see what caused it but thats for another day.
Not surw whether I should close this or leave it as a bug?
This problem disappears when you disable
"manifests": {
"token": "$",
"variablePrefix": "Manifest_",
"missingTokensAsErrors": true,
"disable": true
}
Description
After installation of Mobile.BuildTools, when trying to build against a mac (using a windows dev machine) I get the following error:
I don't know if I'm missing something or need to set something else up?
Works on Android.
Reproduction Steps
Steps to reproduce the behavior:
Expected Behavior
Buidl succeeds
Actual Behavior
Build fails. Detailed log shows:
Environment
Reproduction App
Can supply, but can just use the template that ships with VS2019 and installing Mobile.BuildTools nuget