【发布时间】:2019-08-31 19:21:41
【问题描述】:
Weird-Ass 链接相关的错误
当我尝试在 Xcode 10.3 中构建存档时
环境信息
- 注册号:0.59.3
- Xcode:10.3
- React 原生手势处理程序 (RNGH):1.4.1
- 反应导航:3.11.0
React Native 信息输出:
...
/Users/me/Library/Developer/Xcode/DerivedData/MyApp-somehash/Build/Intermediates.noindex/ArchiveIntermediates/appId/BuildProductsPath/Release-iphoneos/libRNGestureHandler.a -lPods-appId -lRNFirebase -lAppCenterReactNative -lAppCenterReactNativeAnalytics -lAppCenterReactNativeCrashes -Xlinker -dependency_info -Xlinker
...
clang: error: no such file or directory: '/Users/me/Library/Developer/Xcode/DerivedData/MyApp-somehash/Build/Intermediates.noindex/ArchiveIntermediates/appId/BuildProductsPath/Release-iphoneos/libRNGestureHandler.a'
Command Ld failed with a nonzero exit code
复制步骤
安装(如果我没记错的话)Microsoft 的 App Center 工具(尽管它可能是 React Navigation)后,我注意到我的存档构建开始失败,并出现上述未分类错误。奇怪的是,当我在模拟器或 iPhone 上运行构建时,它似乎工作正常。
到目前为止我尝试过的:
- 删除并重新添加 RNGH 库,然后手动将链接添加到构建阶段。这次尝试没有改变错误。回复:https://github.com/kmagiera/react-native-gesture-handler/issues/735
- 完全删除与 RNGH 的链接。由于依赖于此的库,此尝试导致了一个新错误。回复:https://github.com/kmagiera/react-native-gesture-handler/issues/614
- 尝试了这里的一些方法。 Build fails with "Command failed with a nonzero exit code"
- 尝试将应用程序的版本更改为 9.0 以匹配 RNGH 的版本。结果没有改变。 https://github.com/react-native-community/react-native-push-notification-ios/issues/17
- 尝试使用 Xcode 的旧版构建器
- 清除所有 React Native 缓存
- 删除并重新安装 node_modules
- 删除和重新安装 pod
- 清理构建文件夹
- 重启 Xcode
- 重新启动我的笔记本电脑
来自 package.json 的完整环境信息:
"dependencies": {
"@react-native-community/blur": "^3.3.1",
"appcenter": "2.0.0",
"appcenter-analytics": "2.0.0",
"appcenter-crashes": "2.0.0",
"expo-keep-awake": "^5.0.1",
"expo-localization": "^5.0.0",
"i18n-js": "^3.2.2",
"moment": "^2.24.0",
"react": "16.8.3",
"react-native": "0.59.3",
"react-native-code-push": "^5.6.0",
"react-native-config": "^0.11.7",
"react-native-elements": "^1.1.0",
"react-native-firebase": "^5.4.3",
"react-native-gesture-handler": "^1.3.0",
"react-native-maps": "^0.24.2",
"react-native-paper": "^2.16.0",
"react-native-snap-carousel": "^3.8.0",
"react-native-unimodules": "^0.4.0",
"react-native-vector-icons": "^6.5.0",
"react-navigation": "^3.11.0",
"react-redux": "^7.0.3",
"redux": "^4.0.1",
"redux-persist": "^5.10.0",
"redux-starter-kit": "^0.5.1",
"redux-thunk": "^2.3.0"
}
【问题讨论】:
标签: xcode react-native react-navigation react-native-ios visual-studio-app-center