Hi, everyone, I am updating the framework from 3.7.0->3.7.1 recently. After that when I run “ionic cordova platform add ios”, it have a following error:
Error: Cannot find module './resources'
at Function.Module._resolveFilename (module.js:470:15)
at Function.Module._load (module.js:418:25)
at Module.require (module.js:498:17)
at require (internal/module.js:20:19)
at /Users/xxxxxx/Downloads/ionicproj/node_modules/ionic/dist/commands/cordova/index.js:25:167
Anyone know how to solve it? my ionic info is below:
@Sujan12 I can build the app with new proj, but the existing project can’t.
the existing project have the below wording when building but new project haven’t, Is it the clue?
Update IOS build setting SWIFT_OBJC_BRIDGING_HEADER to: "$(PROJECT_DIR)/$(PROJECT_NAME)/Bridging-Header.h" for build configuration Debug
Update IOS build setting SWIFT_OBJC_BRIDGING_HEADER to: "$(PROJECT_DIR)/$(PROJECT_NAME)/Bridging-Header.h" for build configuration Release
Update IOS build setting ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES to: YES for build configuration Debug
Update SWIFT version to 3 Debug
Update IOS build setting ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES to: YES for build configuration Release
Update SWIFT version to 3 Release