大佬教程收集整理的这篇文章主要介绍了ios – React-Native:main.jsbundle不存在.这必须是“无法将对象转换为原始值”的错误,大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。
React Native Environment Info: System: OS: macOS High Sierra 10.13.6 cpu: x64 Intel(R) Core(TM) i5-4258U cpu @ 2.40GHz Memory: 241.64 MB / 8.00 GB SHell: 3.2.57 - /bin/bash Binaries: Node: 8.11.3 - /usr/local/bin/node Yarn: 1.7.0 - /usr/local/bin/yarn npm: 6.2.0 - /usr/local/bin/npm Watchman: 4.9.0 - /usr/local/bin/watchman SDKs: iOS SDK: Platforms: iOS 12.0,macOS 10.14,tvOS 12.0,watchOS 5.0 Android SDK: Build Tools: 21.1.2,22.0.1,23.0.1,23.0.2,23.0.3,25.0.0,25.0.2,25.0.3,26.0.1,26.0.2,26.0.3,27.0.3,28.0.2 API Levels: 23,24,25,26,27 IDEs: Android studio: 3.0 AI-171.4408382 Xcode: 10.0/10A255 - /usr/bin/xcodebuild npmPackages: react: 16.4.1 => 16.4.1 react-native: 0.56.0 => 0.56.0 npmGlobalPackages: create-react-native-app: 1.0.0 react-native-camera: 0.9.0 react-native-cli: 2.0.1 react-native-git-upgrade: 0.2.7 react-native-maps: 0.15.2 react-native-vector-icons: 4.0.0
作为Dev运行项目工作正常,但作为Release运行会产生以下错误.
warning: the transform cache was reset. Loading dependency graph,done. /Users/macintoshhd/Documents/TGS/mow/node_modules/rx/dist/rx.all.js: CAnnot convert object to primitive value + [[ false != true ]] + [[ ! -f /Users/macintoshhd/Library/Developer/Xcode/DerivedData/mow-ekmdxdpkhrpqmmdbccixjzdqelmg/Build/Products/Release-iphoneos/mow.app/main.jsbundle ]] + echo 'error: File /Users/macintoshhd/Library/Developer/Xcode/DerivedData/mow-ekmdxdpkhrpqmmdbccixjzdqelmg/Build/Products/Release-iphoneos/mow.app/main.jsbundle does not exist. This must be a bug with'
react-native bundle --entry-file='index.js' --bundle-output='./ios/main.jsbundle' --dev=false --platform='ios' --assets-dest='./ios'
将–dev = false更改为–dev = true,这些输出的buid成功
react-native bundle --entry-file='index.js' --bundle-output='./ios/main.jsbundle' --dev=true --platform='ios' --assets-dest='./ios'
我试过了
– 清洁和重建
– 删除node_modules并重新安装
– 清理Derived文件夹,重启Xcode,
但他们都没有解决这个问题.
这似乎是主要问题.
你有什么建议吗,请帮忙.
谢谢!
以上是大佬教程为你收集整理的ios – React-Native:main.jsbundle不存在.这必须是“无法将对象转换为原始值”的错误全部内容,希望文章能够帮你解决ios – React-Native:main.jsbundle不存在.这必须是“无法将对象转换为原始值”的错误所遇到的程序开发问题。
如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。
本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。