Comments (9)
访问这个http://localhost:8081/index.bundle?platform=android
from taro-mortgage-calculator.
访问这个http://localhost:8081/index.bundle?platform=android
我浏览器访问 http://localhost:8081/index.bundle?platform=ios&dev=true 触发对应终端平台的 js bundle 构建如下:
➜ Taro-Mortgage-Calculator git:(master) ✗ yarn dev:rn --port 8081
yarn run v1.15.2
$ npm run build:rn -- --watch --port 8081
npm WARN lifecycle The node binary used for scripts is /var/folders/bg/dlf3207n7cd02x9c26bg02qm0000gn/T/yarn--1616156972956-0.16433634752153825/node but npm is using /usr/local/Cellar/node/11.10.0/bin/node itself. Use the `--scripts-prepend-node-path` option to include the path for the node binary npm was executed with.
> [email protected] build:rn /Users/apple/docker/wwwroot/Taro-Mortgage-Calculator
> yarn build:rn-ios && yarn build:rn-android "--watch" "--port" "8081"
$ taro build --type rn --platform ios
👽 Taro v3.2.0-canary.5
Welcome to React Native!
Learn once, write anywhere
transform[stdout]: 启动 样式文件处理开始 src/pages/calculator/index.rn.scss
transform[stdout]: 编译 样式文件处理完毕 src/pages/calculator/index.rn.scss
transform[stdout]: 启动 样式文件处理开始 src/pages/calculator/history/index.rn.scss
transform[stdout]: 编译 样式文件处理完毕 src/pages/calculator/history/index.rn.scss
transform[stdout]: 启动 样式文件处理开始 src/app.rn.scss
transform[stdout]: 编译 样式文件处理完毕 src/app.rn.scss
transform[stdout]: 启动 样式文件处理开始 src/pages/calculator/monthly-payments/index.rn.scss
transform[stdout]: 编译 样式文件处理完毕 src/pages/calculator/monthly-payments/index.rn.scss
transform[stdout]: 启动 样式文件处理开始 src/pages/calculator/compute-header/index.rn.scss
transform[stdout]: 编译 样式文件处理完毕 src/pages/calculator/compute-header/index.rn.scss
transform[stdout]: 启动 样式文件处理开始 src/components/box-shadow/index.scss
transform[stdout]: 启动 样式文件处理开始 src/components/safe-area-view/index.rn.scss
transform[stdout]: 启动 样式文件处理开始 src/components/linear-gradient/index.rn.scss
transform[stdout]: 编译 样式文件处理完毕 src/components/linear-gradient/index.rn.scss
transform[stdout]: 编译 样式文件处理完毕 src/components/safe-area-view/index.rn.scss
transform[stdout]: 启动 样式文件处理开始 src/components/keyboard-aware-scroll-view/index.rn.scss
transform[stdout]: 编译 样式文件处理完毕 src/components/keyboard-aware-scroll-view/index.rn.scss
transform[stdout]: 启动 样式文件处理开始 src/components/modal/index.rn.scss
transform[stdout]: 编译 样式文件处理完毕 src/components/modal/index.rn.scss
transform[stdout]: 启动 样式文件处理开始 src/components/picker/index.rn.scss
transform[stdout]: 编译 样式文件处理完毕 src/components/picker/index.rn.scss
transform[stdout]: 编译 样式文件处理完毕 src/components/box-shadow/index.scss
Writing bundle output to: dist/rn/ios/main.jsbundle
Done writing bundle output
transform[stdout]: 启动 样式文件处理开始 src/app.rn.scss
transform[stdout]: 编译 样式文件处理完毕 src/app.rn.scss
transform[stdout]: 启动 样式文件处理开始 src/pages/calculator/index.rn.scss
transform[stdout]: 编译 样式文件处理完毕 src/pages/calculator/index.rn.scss
transform[stdout]: 启动 样式文件处理开始 src/pages/calculator/monthly-payments/index.rn.scss
transform[stdout]: 编译 样式文件处理完毕 src/pages/calculator/monthly-payments/index.rn.scss
transform[stdout]: 启动 样式文件处理开始 src/pages/calculator/history/index.rn.scss
transform[stdout]: 编译 样式文件处理完毕 src/pages/calculator/history/index.rn.scss
transform[stdout]: 启动 样式文件处理开始 src/pages/calculator/compute-header/index.rn.scss
transform[stdout]: 编译 样式文件处理完毕 src/pages/calculator/compute-header/index.rn.scss
transform[stdout]: 启动 样式文件处理开始 src/components/safe-area-view/index.rn.scss
transform[stdout]: 启动 样式文件处理开始 src/components/linear-gradient/index.rn.scss
transform[stdout]: 编译 样式文件处理完毕 src/components/safe-area-view/index.rn.scss
transform[stdout]: 编译 样式文件处理完毕 src/components/linear-gradient/index.rn.scss
transform[stdout]: 启动 样式文件处理开始 src/components/modal/index.rn.scss
transform[stdout]: 启动 样式文件处理开始 src/components/keyboard-aware-scroll-view/index.rn.scss
transform[stdout]: 编译 样式文件处理完毕 src/components/modal/index.rn.scss
transform[stdout]: 编译 样式文件处理完毕 src/components/keyboard-aware-scroll-view/index.rn.scss
transform[stdout]: 启动 样式文件处理开始 src/components/picker/index.rn.scss
transform[stdout]: 编译 样式文件处理完毕 src/components/picker/index.rn.scss
transform[stdout]: 启动 样式文件处理开始 src/components/box-shadow/index.scss
transform[stdout]: 编译 样式文件处理完毕 src/components/box-shadow/index.scss
info Copying 20 asset files
info Done copying assets
$ taro build --type rn --platform android --watch --port 8081
👽 Taro v3.2.0-canary.5
Tips: 预览模式生成的文件较大,设置 NODE_ENV 为 production 可以开启压缩。
Example:
$ NODE_ENV=production taro build --type rn --watch
##### ## ##### #### ##### ###### ## #### ##### # # ## ##### # # # ######
# # # # # # # # # # # # # # # ## # # # # # # # #
# # # # # # # # # ##### # # # # # # # # # # # # # #####
# ###### ##### # # ##### # ###### # # # # # ###### # # # # #
# # # # # # # # # # # # # # # # ## # # # # # # #
# # # # # #### # # ###### # # #### # # # # # # # ## ######
React-Native Dev server is running on port: 8081
To reload the app press "r"
To open developer menu press "d"
Welcome to React Native!
Learn once, write anywhere
transform[stdout]: 启动 样式文件处理开始 src/app.rn.scss
transform[stdout]: 编译 样式文件处理完毕 src/app.rn.scss
transform[stdout]: 启动 样式文件处理开始 src/pages/calculator/index.rn.scss
transform[stdout]: 启动 样式文件处理开始 src/pages/calculator/monthly-payments/index.rn.scss
transform[stdout]: 启动 样式文件处理开始 src/pages/calculator/history/index.rn.scss
transform[stdout]: 编译 样式文件处理完毕 src/pages/calculator/index.rn.scss
transform[stdout]: 编译 样式文件处理完毕 src/pages/calculator/monthly-payments/index.rn.scss
transform[stdout]: 编译 样式文件处理完毕 src/pages/calculator/history/index.rn.scss
transform[stdout]: 启动 样式文件处理开始 src/pages/calculator/compute-header/index.rn.scss
transform[stdout]: 启动 样式文件处理开始 src/components/safe-area-view/index.rn.scss
transform[stdout]: 编译 样式文件处理完毕 src/components/safe-area-view/index.rn.scss
transform[stdout]: 启动 样式文件处理开始 src/components/box-shadow/index.scss
transform[stdout]: 编译 样式文件处理完毕 src/components/box-shadow/index.scss
transform[stdout]: 启动 样式文件处理开始 src/components/modal/index.rn.scss
transform[stdout]: 编译 样式文件处理完毕 src/components/modal/index.rn.scss
transform[stdout]: 启动 样式文件处理开始 src/components/linear-gradient/index.rn.scss
transform[stdout]: 编译 样式文件处理完毕 src/components/linear-gradient/index.rn.scss
transform[stdout]: 启动 样式文件处理开始 src/components/picker/index.rn.scss
transform[stdout]: 编译 样式文件处理完毕 src/components/picker/index.rn.scss
transform[stdout]: 编译 样式文件处理完毕 src/pages/calculator/compute-header/index.rn.scss
transform[stdout]: 启动 样式文件处理开始 src/components/keyboard-aware-scroll-view/index.rn.scss
transform[stdout]: 编译 样式文件处理完毕 src/components/keyboard-aware-scroll-view/index.rn.scss
transform[stdout]: 启动 样式文件处理开始 src/pages/calculator/index.rn.scss
transform[stdout]: 启动 样式文件处理开始 src/app.rn.scss
transform[stdout]: 编译 样式文件处理完毕 src/app.rn.scss
transform[stdout]: 编译 样式文件处理完毕 src/pages/calculator/index.rn.scss
transform[stdout]: 启动 样式文件处理开始 src/pages/calculator/monthly-payments/index.rn.scss
transform[stdout]: 编译 样式文件处理完毕 src/pages/calculator/monthly-payments/index.rn.scss
transform[stdout]: 启动 样式文件处理开始 src/pages/calculator/compute-header/index.rn.scss
transform[stdout]: 编译 样式文件处理完毕 src/pages/calculator/compute-header/index.rn.scss
transform[stdout]: 启动 样式文件处理开始 src/pages/calculator/history/index.rn.scss
transform[stdout]: 编译 样式文件处理完毕 src/pages/calculator/history/index.rn.scss
transform[stdout]: 启动 样式文件处理开始 src/components/keyboard-aware-scroll-view/index.rn.scss
transform[stdout]: 编译 样式文件处理完毕 src/components/keyboard-aware-scroll-view/index.rn.scss
transform[stdout]: 启动 样式文件处理开始 src/components/linear-gradient/index.rn.scss
transform[stdout]: 编译 样式文件处理完毕 src/components/linear-gradient/index.rn.scss
transform[stdout]: 启动 样式文件处理开始 src/components/picker/index.rn.scss
transform[stdout]: 编译 样式文件处理完毕 src/components/picker/index.rn.scss
transform[stdout]: 启动 样式文件处理开始 src/components/box-shadow/index.scss
transform[stdout]: 编译 样式文件处理完毕 src/components/box-shadow/index.scss
transform[stdout]: 启动 样式文件处理开始 src/components/safe-area-view/index.rn.scss
transform[stdout]: 编译 样式文件处理完毕 src/components/safe-area-view/index.rn.scss
transform[stdout]: 启动 样式文件处理开始 src/components/modal/index.rn.scss
transform[stdout]: 编译 样式文件处理完毕 src/components/modal/index.rn.scss
[Fri Mar 19 2021 20:30:42.682] BUNDLE ./index
[Fri Mar 19 2021 20:30:47.554] BUNDLE ./index
[Fri Mar 19 2021 20:30:51.186] BUNDLE ./index
[Fri Mar 19 2021 20:30:52.152] BUNDLE ./index
[Fri Mar 19 2021 20:30:53.580] BUNDLE ./index
[Fri Mar 19 2021 20:30:57.859] BUNDLE ./index
[Fri Mar 19 2021 20:31:02.873] BUNDLE ./index
[Fri Mar 19 2021 20:41:44.520] BUNDLE ./index
```
此时我打开终端还是跑不起来,执行:react-native run-ios
```
➜ Taro-Mortgage-Calculator git:(master) ✗ react-native run-ios
info Found Xcode workspace "taroDemo.xcworkspace"
info Building (using "xcodebuild -workspace taroDemo.xcworkspace -configuration Debug -scheme taroDemo -destination id=965425FF-ABC6-492C-B456-28CFAC0CF6EA")
error Failed to build iOS project. We ran "xcodebuild" command but it exited with error code 65. To debug build logs further, consider building your app with Xcode.app, by opening taroDemo.xcworkspace. Run CLI with --verbose flag for more details.
Command line invocation:
/Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -workspace taroDemo.xcworkspace -configuration Debug -scheme taroDemo -destination id=965425FF-ABC6-492C-B456-28CFAC0CF6EA
note: Using new build system
note: Building targets in parallel
note: Planning build
note: Using build description from disk
error: /Users/apple/docker/wwwroot/Taro-Mortgage-Calculator/ios/Pods/Target Support Files/Pods-taroDemo/Pods-taroDemo.debug.xcconfig: unable to open file (in target "taroDemo" in project "taroDemo") (in target 'taroDemo' from project 'taroDemo')
error: /Users/apple/docker/wwwroot/Taro-Mortgage-Calculator/ios/Pods/Target Support Files/Pods-taroDemo/Pods-taroDemo.debug.xcconfig: unable to open file (in target "taroDemo" in project "taroDemo") (in target 'taroDemo' from project 'taroDemo')
error: /Users/apple/docker/wwwroot/Taro-Mortgage-Calculator/ios/Pods/Target Support Files/Pods-taroDemo/Pods-taroDemo.debug.xcconfig: unable to open file (in target "taroDemo" in project "taroDemo") (in target 'taroDemo' from project 'taroDemo')
error: /Users/apple/docker/wwwroot/Taro-Mortgage-Calculator/ios/Pods/Target Support Files/Pods-taroDemo/Pods-taroDemo.debug.xcconfig: unable to open file (in target "taroDemo" in project "taroDemo") (in target 'taroDemo' from project 'taroDemo')
warning: Capabilities for Signing & Capabilities may not function correctly because its entitlements use a placeholder team ID. To resolve this, select a development team in the taroDemo editor. (in target 'taroDemo' from project 'taroDemo')
** BUILD FAILED **
```
from taro-mortgage-calculator.
consider building your app with Xcode.app, by opening taroDemo.xcworkspace.
from taro-mortgage-calculator.
consider building your app with Xcode.app, by opening taroDemo.xcworkspace.
我现在差不多跑起来了 = = ,日志报错:
bundle(http://localhost:8081/rn_temp/index.bundle?platform=ios&dev=true&minify=false) with error:(Please access /index.bundle for entry bundling. (null))
但是我实际是直接访问 http://localhost:8081/index.bundle?platform=ios&dev=true 构建 js bundle的,是一定要求rn_temp目录吗?怎样可以更改目录配置?日志提示:
21-03-21 12:42:19.481 [info][tid:main][RCTCxxBridge.mm:213] Initializing <RCTCxxBridge: 0x7fa9614168f0> (parent: <RCTBridge: 0x6000009d0460>, executor: (null))
2021-03-21 12:42:19.546 [info][tid:main][RCTRootView.m:293] Running application taroDemo ({
initialProps = {
};
rootTag = 1;
})
2021-03-21 12:42:19.559 [error][tid:com.apple.NSURLSession-delegate][RCTCxxBridge.mm:414] Failed to load bundle(http://localhost:8081/rn_temp/index.bundle?platform=ios&dev=true&minify=false) with error:(Please access /index.bundle for entry bundling. (null))
from taro-mortgage-calculator.
consider building your app with Xcode.app, by opening taroDemo.xcworkspace.
我现在差不多跑起来了 = = ,日志报错:
bundle(http://localhost:8081/rn_temp/index.bundle?platform=ios&dev=true&minify=false) with error:(Please access /index.bundle for entry bundling. (null))
但是我实际是直接访问 http://localhost:8081/index.bundle?platform=ios&dev=true 构建 js bundle的,是一定要求rn_temp目录吗?怎样可以更改目录配置?日志提示:
21-03-21 12:42:19.481 [info][tid:main][RCTCxxBridge.mm:213] Initializing <RCTCxxBridge: 0x7fa9614168f0> (parent: <RCTBridge: 0x6000009d0460>, executor: (null)) 2021-03-21 12:42:19.546 [info][tid:main][RCTRootView.m:293] Running application taroDemo ({ initialProps = { }; rootTag = 1; }) 2021-03-21 12:42:19.559 [error][tid:com.apple.NSURLSession-delegate][RCTCxxBridge.mm:414] Failed to load bundle(http://localhost:8081/rn_temp/index.bundle?platform=ios&dev=true&minify=false) with error:(Please access /index.bundle for entry bundling. (null))
我目前是手动改了 AppDelegate.m 的 jsBundleURLForBundleRoot 路径
from taro-mortgage-calculator.
你是不是壳工程用的0.59?
现在不需要rn_temp目录了
from taro-mortgage-calculator.
你是不是壳工程用的0.59?
现在不需要rn_temp目录了
是的 文档那里没更新 我现在已经切到0.63.2分支了
from taro-mortgage-calculator.
踩坑跑起来了
from taro-mortgage-calculator.
你是不是壳工程用的0.59?
现在不需要rn_temp目录了是的 文档那里没更新 我现在已经切到0.63.2分支了
指的是那一份文档
from taro-mortgage-calculator.
Related Issues (13)
- 启动后模拟器错误 HOT 1
- 使用 taro-native-shell 加载bundle,报错 HOT 1
- taro-ui可以在RN跑起来吗? HOT 2
- H5版本没有顶部导航区域 HOT 1
- 本地如何生成链接 ? HOT 1
- 生成的二维码QR,扫描提示“packager is not avaliable” HOT 1
- 扫码后报错TypeError: undefined is not an object (evaluating '_expoModulesCore.NativeModulesProxy.ExpoUpdates') HOT 1
- How to build or integrate a release react native ios/android APP? HOT 4
- 示例中taro的 types ComponentOptions 在新的react-native模板中找不到导出类型 HOT 3
- 本地开发环境下如何在 Taro 壳项目中加载? HOT 2
- 引入 import { AtInput } from 'taro-ui'; 报错 Unable to resolve module expo-asset HOT 3
- 基于 Taro 开发的三端组件,UT怎么做同构 HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from taro-mortgage-calculator.