gpt4 book ai didi

ios - 将 xcode 更新到 9.4 后,react native ios 构建失败。错误是类型 'NSInteger' 的值

转载 作者:塔克拉玛干 更新时间:2023-11-02 10:21:01 25 4
gpt4 key购买 nike

enter image description here

错误代码信息是

“NSInteger”类型的值不应用作格式参数;改为向“long”添加显式转换将“JS 之前的 %zd 事件 - 尝试让你的 JS 更快。”,self.text,'替换为“JS 之前的 %ld 事件 - 尝试让你的 JS 更快。”,self.text,(长)'

我的package.json文件如下。

{
"name": "*****",
"version": "****",
"private": true,
"scripts": {
"start": "node node_modules/react-native/local-cli/cli.js start",
"test": "jest"
},
"dependencies": {
"firebase": "^5.0.4",
"moment": "^2.20.1",
"prop-types": "^15.6.0",
"react": "^16.0.0-alpha.12",
"react-addons-update": "^15.6.2",
"react-moment": "^0.6.9",
"react-native": "^0.48.4",
"react-native-camera": "^1.1.4",
"react-native-check-box": "^2.0.2",
"react-native-communications": "^2.2.1",
"react-native-device-info": "^0.13.0",
"react-native-elements": "^0.18.5",
"react-native-facebook-login": "^1.6.0",
"react-native-fcm": "^10.0.3",
"react-native-gifted-chat": "^0.4.3",
"react-native-image-crop-picker": "^0.18.2",
"react-native-image-picker": "^0.26.7",
"react-native-image-zoom-viewer": "^2.0.20",
"react-native-keyboard-aware-scroll-view": "^0.4.3",
"react-native-keyboard-spacer": "^0.4.1",
"react-native-maps": "^0.17.1",
"react-native-modal": "^4.1.1",
"react-native-modal-selector": "0.0.24",
"react-native-permissions": "^1.0.6",
"react-native-progress": "^3.4.0",
"react-native-simple-radio-button": "^2.7.2",
"react-native-snap-carousel": "^3.5.0",
"react-native-splash-screen": "^3.0.6",
"react-native-swiper": "^1.5.13",
"react-native-vector-icons": "^4.5.0",
"react-navigation": "^1.0.0-beta.27",
"react-redux": "^5.0.6",
"redux": "^3.7.2",
"redux-persist": "^5.5.0",
"redux-thunk": "^2.2.0"
},
"devDependencies": {
"babel-jest": "21.2.0",
"babel-preset-react-native": "4.0.0",
"jest": "21.2.1",
"react-test-renderer": "16.0.0"
},
"jest": {
"preset": "react-native"
},
"build:ios": "react-native bundle --entry-file='index.ios.js' --bundle-output='./ios/luxlabUser/main.jsbundle' --dev=false --platform='ios' --assets-dest='./ios'"

我能够在 xcode 9.2 版本中正常构建。但是,由于 9.2 版本不支持 iOS 11.4 的构建,因此我升级了 xcode 版本。从那以后我一直在做我的构建失败。

谢谢。

最佳答案

这是一件简单的事情..

只需点击xcode修复按钮

关于ios - 将 xcode 更新到 9.4 后,react native ios 构建失败。错误是类型 'NSInteger' 的值,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50979085/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com