创建main.jsbundle时Xcode构建失败

时间:2019-05-22 18:09:16

标签: ios xcode react-native mobile xcodebuild

我正在运行xcodebuild存档以创建我的iOS React Native项目的应用文件。

+ node /Users/Shared/Jenkins/Home/workspace/ios-react-native-build-shell/node_modules/react-native/local-cli/cli.js bundle --entry-file index.js --platform ios --dev false --reset-cache --bundle-output /Users/Shared/Jenkins/Home/workspace/ios-react-native-build-shell/ios/build/Build/Intermediates.noindex/ArchiveIntermediates/myApp/BuildProductsPath/Release-iphoneos/myApp.app/main.jsbundle --assets-dest /Users/Shared/Jenkins/Home/workspace/ios-react-native-build-shell/ios/build/Build/Intermediates.noindex/ArchiveIntermediates/myApp/BuildProductsPath/Release-iphoneos/myApp.app
warning: the transform cache was reset.
Loading dependency graph, done.

Cannot read property 'transformFile' of undefined

TypeError: Cannot read property 'transformFile' of undefined
    at /Users/Shared/Jenkins/Home/workspace/ios-react-native-build-shell/node_modules/metro/src/Bundler.js:78:34
    at Generator.next (<anonymous>)
    at step (/Users/Shared/Jenkins/Home/workspace/ios-react-native-build-shell/node_modules/metro/src/Bundler.js:18:30)
    at /Users/Shared/Jenkins/Home/workspace/ios-react-native-build-shell/node_modules/metro/src/Bundler.js:29:15
    at <anonymous>
    at process._tickCallback (internal/process/next_tick.js:188:7)

当react-native试图创建main.jsbundle文件时,我面临着这个问题。可能是什么问题?

0 个答案:

没有答案