iOS trim error when building



I am receiving an error when trying to build that states “cannot read property ‘trim’ of undefined”. I’m able to build on android, but for IOS i get this error. Here is whats in my package.json

“nativescript-cache”: “^1.0.0”,
“nativescript-statusbar”: “^3.0.1”,
“nativescript-telerik-ui”: “3.0.4”,
“nativescript-theme-core”: “^1.0.4”,
“tns-core-modules”: “3.1.1”

tns-ios is version 3.1.0


Did you try to remove some plugins and try to build again? And what is the whole build log?


I was missing files in my app_resources once I added the correct iOS file I got passed that error only to be met with a new error.

[native code]: JS ERROR Error: Could not find module ‘./’. Computed path ‘/Users/xxxxx/Library/Developer/CoreSimulator/Devices/90513803-01FC-4309-85C3-3B65559FE68A/data/Containers/Bundle/Application/1730D635-B3AF-4D7D-8F3E-5A96DF2AAFD3/’.
Sep 1 09:00:54 salesdemo-pc[9596] (UIKitApplication:org.nativescript.twmobile[0x4a6][9618][10082]): Service exited due to Segmentation fault: 11


You could consider creating a new application and replacing the files there with your own. If files were missing in the App_Resources, perhaps there is something else that you could have left out.


That did the trick. Thanks Pete