Invalid Bundle Structure - your app can’t contain standalone executables or libraries


#1

I have been trying for 3 days to get my app to upload to the app store. I’m getting an error that says two files aren’t allowed including adb.exe and ios-device-lib.

I have googled around and found suggestions that I delete these files and rebuild and I have done that 10+ times, but Apple still reports that these files are there.

Any thoughts fellow Nativescripters?

CoderTonyB

More info - here is my package.json. Some on other forums have suggested there was something wrong with my dev dependancies:

“dependencies”: {
"@angular/animations": “~5.2.4”,
"@angular/common": “~5.2.4”,
"@angular/compiler": “~5.2.4”,
"@angular/core": “~5.2.4”,
"@angular/forms": “~5.2.4”,
"@angular/http": “~5.2.4”,
"@angular/platform-browser": “~5.2.4”,
"@angular/platform-browser-dynamic": “5.2.4”,
"@angular/router": “~5.2.4”,
“nativescript”: “^3.2.1”,
“nativescript-angular”: “~5.2.0”,
“nativescript-email”: “^1.5.1”,
“nativescript-modal-datetimepicker”: “^1.0.3”,
“nativescript-phone”: “^1.3.1”,
“nativescript-sqlite”: “^2.0.1”,
“nativescript-theme-core”: “~1.0.2”,
“reflect-metadata”: “~0.1.8”,
“rxjs”: “~5.5.6”,
“tns-core-modules”: “^3.4.0”,
“zone.js”: “~0.8.2”
},
“devDependencies”: {
“babel-traverse”: “6.4.5”,
“babel-types”: “6.4.5”,
“babylon”: “6.4.5”,
“lazy”: “1.0.11”,
“nativescript-dev-typescript”: “~0.6.0”,
“typescript”: “~2.6.2”
},


#2

I finally got this to submit by adding a plugin and excluding ios-device-lib

tns plugin add nativescript-hook-filter-modules
and added this to the filter-modules.json

{
“to_be_deleted”: [
“ios-device-lib”
],
“to_be_kept”: [

]

}

I also deleted adb.exe from the android folder in my node_modules

What frustration! I hope this helps someone avoid this fight -