做React-Native项目时,使用Realm做数据持久化,由于种种不便,所以将其删除。
由于项目依赖关系,故使用以下命令:
1.删除项目依赖
$ npm uninstall realm --save
到此处,不能高兴太早,被坑的很惨啊!!!!
2.编译iOS,运行为啥报错呢??
报错信息如下:
Failed to install the requested application
An application bundle was not found at the provided path.
Provide a valid path to the desired application bundle.
Print: Entry, ":CFBundleIdentifier", Does Not Exist
Command failed: /usr/libexec/PlistBuddy -c Print:CFBundleIdentifier build/Build/Products/Debug-iphonesimulator/ReactNativexx.app/Info.plist
Print: Entry, ":CFBundleIdentifier", Does Not Exist
看到这些,蛋都碎了,有木有??有木有??明明什么么都没做,为啥运行出错呢??
3.在xcode中删除相关配置
至此xcode中编译成功