错误 ITMS-90171:“无效的捆绑结构 - 二进制文件 'xxxx.app/app/tns_modules/fsevents/lib/binding/Release/node-v47-darwin-x64/fse.node'

ERROR ITMS-90171: "Invalid Bundle Structure - The binary file 'xxxx.app/app/tns_modules/fsevents/lib/binding/Release/node-v47-darwin-x64/fse.node'

我在使用 Build on X Code 时遇到问题。我收到此错误。

ERROR ITMS-90171: "Invalid Bundle Structure - The binary file 'xxxx.app/app/tns_modules/fsevents/lib/binding/Release/node-v47-darwin-x64/fse.node' is not permitted. Your app can’t contain standalone executables or libraries, other than the CFBundleExecutable of supported bundles. Refer to the Bundle Programming Guide at https://developer.apple.com/go/?id=bundle-structure for information on the iOS app bundle structure."

此错误背后的原因是我的开发依赖项之一位于 package.json 文件中的依赖项对象内。

由于 fse.node 与 "nativescript-dev-sass" 相关:“^1.0.0-rc.2” 我只是将其从 dependecies 移至 devDependencies 并且错误消失了。