I've been having trouble running sencha app upgrade in the terminal. One of the scripts is adding a duplicate "framework": "touch" line to the top of my app.json file. The upgrade then fails with the following error:
Code:
[ERR] com.sencha.exceptions.ExScript: Wrapped com.sencha.exceptions.BasicException: Failed to load JSON from /path/to/my/app/app.json - duplicate key: framework (/path/to/Sencha/Cmd/6.1.1.76/ant/ant-util.js#849)
runSencha (/path/to/bin/Sencha/Cmd/6.1.1.76/ant/ant-util.js:848)
runAppUpgrade (anonymous:270)
[anonymous] (anonymous:290)
x_app_upgrade (anonymous:288)
[ERR]
If I remove the original "framework": "touch" line, I predictably get an error that it is missing. I've been having other issues, including xcode crashing when I attempt to load the ios project file I've tried removing/adding the ios platform, and a number of other fixes. I'm not sure if that's at all related. This project was somehow corrupted last week (on the same day my backup drive failed
), and I've just been slogging through putting it back together since.
UPDATE: I was able to generate a new app and copy the .sencha folder on top of my existing project. I assume that has emulated a successful upgrade, as described in the "Alternative Strategies" section of https://docs.sencha.com/cmd/6.x/cmd_upgrade.html. xCode is still crashing, so I believe the two issues are unrelated.