Despite the presence of a platform-specific app.js file, the Titanium CLI will fail to build with the following error if there is no app.js directly in the Resources folder. This behavior seems to affect all supported platforms.
To make it a little more clear, even if Resources/iphone/app.js exists, the error still occurs on iOS builds if Resources/app.js does not, despite the fact that it would be unused.
Apps should not require Resources/app.js if they have the appropriate platform-specific app.js for the current build.
- Create a new Titanium app
- Move the app.js file to the Resources/iphone directory
- Build the app for iOS
- You should get the error listed above in the problem section