react-native - React Native:如何完全删除 Instabug?
问题描述
我最近从我的 React Native 0.53.3 项目中删除了 Instabug,但是当我运行时react-native run-ios
出现构建失败:
ld: framework not found Instabug
clang: error: linker command failed with exit code 1 (use -v to see invocation)
** BUILD FAILED **
The following build commands failed:
Ld /Users/danale/Library/Developer/Xcode/DerivedData/build/Build/Products/Debug-iphonesimulator/NFIBEngage.app/NFIBEngage normal x86_64
(1 failure)
Installing build/Build/Products/Debug-iphonesimulator/NFIBEngage.app
An error was encountered processing the command (domain=NSPOSIXErrorDomain, code=2):
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/NFIBEngage.app/Info.plist
Print: Entry, ":CFBundleIdentifier", Does Not Exist
如何从我的项目中完全删除 Instabug,这样它就不会在 iOS 构建中寻找它?
到目前为止,我已将它从App.js
文件中完全删除,但它仍然在build.gradle
、MainActivity.java
、MainApplication.java
、和filesettings.gradle
中被引用。顺便说一句,我什至不使用。project.pbxproj
yarn.lock
yarn
我该如何彻底清理它?
解决方案
如果react-native unlink instabug-reactnative
不起作用,请尝试手动删除所有 react-native 链接更改。
您可以参考这些页面以删除所有参考
删除每个引用后清理项目。(有时可能需要删除 Xcode 派生数据)
推荐阅读
- java - WAR 文件:无法找到或加载主类,但它存在
- javascript - getUserMedia() 无法释放相机
- apache - MediaWiki 重写网址
- spring - 响应 500 后 Firefox 未发送请求
- android - 如何使用 Android Profiler 在 Android 中查找不需要的引用
- c# - UWP MapControl 在构建面向旧操作系统的应用程序包时无法添加 MapIcon
- python - numpy模块的nd数组对象
- ios - 在 Swift 4 的左侧/右侧的 UITextField 中添加图标或图像
- python - 从原始聚类图片中查询一个 kNN
- php - 使用PHP while循环将数据插入Mysql