- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我已在 Debug模式下构建,这很好,但存档收到错误消息
图 1:错误
我打开了 .xcworkspace 而不是 .xcodeproj。并删除Pods,Podfile.lock重新安装pods但仍然不起作用。
我尝试在 Link Binary With Libraries 中链接 libBolts,但 Xcode 仍然要求提供 IPOds-PorjectName 之前的其他库。但它已经在“链接二进制与库”中。
Pod文件
# Uncomment the next line to define a global platform for your project
platform :ios, '12.1'
target 'Project' do
# Uncomment the next line if you're using Swift or would like to use dynamic frameworks
# use_frameworks!
rn_path = '../node_modules/react-native' # This path is likely to be `../node_modules/react-native` in your own project.
# See http://facebook.github.io/react-native/docs/integration-with-existing-apps.html#configuring-cocoapods-dependencies
pod 'yoga', path: "#{rn_path}/ReactCommon/yoga/yoga.podspec"
pod 'React', path: rn_path, subspecs: [
'Core',
'DevSupport',
'ART',
'RCTActionSheet',
'RCTAnimation',
'RCTGeolocation',
'RCTImage',
'RCTLinkingIOS',
'RCTNetwork',
'RCTSettings',
'RCTText',
'RCTVibration',
'RCTWebSocket',
]
pod 'react-native-fbsdk', :path => '../node_modules/react-native-fbsdk'
pod 'react-native-image-picker', :path => '../node_modules/react-native-image-picker'
pod 'react-native-fetch-blob', :path => '../node_modules/react-native-fetch-blob'
pod 'Firebase/Core'
pod 'Firebase/Messaging'
end
包.json
{
"name": "Project",
"version": "0.0.1",
"private": true,
"scripts": {
"start": "node node_modules/react-native/local-cli/cli.js start",
"test": "jest"
},
"dependencies": {
"@types/styled-components": "^4.1.6",
"axios": "^0.18.0",
"moment": "^2.24.0",
"native-base": "^2.10.0",
"prop-types": "^15.6.2",
"react": "16.6.3",
"react-addons-update": "^15.6.2",
"react-native": "0.57.8",
"react-native-autogrow-textinput": "^5.2.0",
"react-native-cached-image": "^1.4.3",
"react-native-fbsdk": "^0.8.0",
"react-native-fetch-blob": "^0.10.8",
"react-native-firebase": "^5.2.2",
"react-native-gifted-chat": "^0.7.2",
"react-native-highcharts": "^1.0.2",
"react-native-image-picker": "^0.28.0",
"react-native-image-zoom-viewer": "^2.2.25",
"react-native-linear-gradient": "^2.5.3",
"react-native-popup-menu": "^0.15.0",
"react-native-read-more-text": "^1.1.0",
"react-native-render-html": "^4.1.1",
"react-native-router-flux": "^4.0.6",
"react-native-size-matters": "^0.1.6",
"react-native-swiper": "^1.5.14",
"react-native-view-more-text": "^2.0.1",
"react-redux": "^6.0.0",
"redux": "^4.0.1",
"redux-thunk": "^2.3.0",
"socket.io-client": "^2.2.0",
"styled-components": "^4.1.3"
},
"devDependencies": {
"@types/jest": "^23.3.13",
"@types/react": "^16.7.20",
"@types/react-native": "^0.57.29",
"@types/react-test-renderer": "^16.0.3",
"babel-jest": "23.6.0",
"eslint-config-rallycoding": "^3.2.0",
"jest": "23.6.0",
"metro-react-native-babel-preset": "0.51.1",
"react-native-typescript-transformer": "^1.2.11",
"react-test-renderer": "16.6.3",
"typescript": "^3.2.4"
},
"jest": {
"preset": "react-native",
"moduleFileExtensions": [
"ts",
"tsx",
"js"
],
"transform": {
"^.+\\.(js)$": "<rootDir>/node_modules/babel-jest",
"\\.(ts|tsx)$": "<rootDir>/node_modules/ts-jest/preprocessor.js"
},
"testRegex": "(/__tests__/.*|\\.(test|spec))\\.(ts|tsx|js)$",
"testPathIgnorePatterns": [
"\\.snap$",
"<rootDir>/node_modules/"
],
"cacheDirectory": ".jest/cache"
},
"rnpm": {
"assets": [
"./src/assets/fonts"
]
}
}
最佳答案
最后我通过将部署目标版本更改为 12.1 解决了这个问题,因为 Podfile 和部署目标之间的版本不同。那么一切都很好!.
关于ios - react native : ios - Library not found for -lbolts,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54937249/
我有一个运行良好的 Objective C 项目,我决定通过 Cocoapods 安装 Citrus Payment SDK,该 SDK 是用 Swift 语言编写的。我在 cocoapods 安装后
原生 react 0.57 CocoaPods 1.5.3 Xcode 10.1 我已在 Debug模式下构建,这很好,但存档收到错误消息 图 1:错误 我打开了 .xcworkspace 而不是 .
我已经有几天遇到这个烦人的错误了: 我试过:删除 pods 文件夹和 pod 文件以及 pod.lock 文件和 .workspace 文件并再次重新安装 pods。删除 pods.xconfig 文
大家 我遇到的问题是我无法编译我的应用程序,因为我收到以下错误: ld: library not found for -lBolts clang: error: linker command fail
我知道 Multidex 问题在 StackOverflow 上很常见,但没有一个解决方案适合我。我怀疑它的 bolts-android 在编译 facebook sdk 时会产生冲突,因为如果我不是
我确实知道之前已经多次报告过多个 dex 问题,但似乎没有一个解决方案适用于我的情况。 控制台: Unable to execute dex: Multiple dex files defin
我是一名优秀的程序员,十分优秀!