NervJS / taro-native-shell

Taro 原生 React Native 壳子
MIT License
200 stars 106 forks source link

启动失败 #22

Open edenleung opened 4 years ago

edenleung commented 4 years ago

环境 xcode: 11

执行以下命令

taro build --type rn --watch
react-native run-ios --simulator="iPhone 11 Pro Max"

Output

leungdeiMac:taro-native-shell leung$ react-native run-ios --simulator="iPhone 11 Pro Max"
Scanning folders for symlinks in /Users/leung/taro-native-shell/node_modules (12ms)
Found Xcode workspace taroDemo.xcworkspace
CoreData: annotation:  Failed to load optimized model at path '/Applications/Xcode.app/Contents/Applications/Instruments.app/Contents/Frameworks/InstrumentsPackaging.framework/Versions/A/Resources/XRPackageModel.momd/XRPackageModel 9.0.omo'
Building using "xcodebuild -workspace taroDemo.xcworkspace -configuration Debug -scheme taroDemo -destination id=6E6CD24C-5DAA-41F5-82AD-615D25232677 -derivedDataPath build"
User defaults from command line:
    IDEDerivedDataPathOverride = /Users/leung/taro-native-shell/ios/build

note: Using new build system

note: Planning build

note: Constructing build description

error: /Users/leung/taro-native-shell/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/leung/taro-native-shell/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/leung/taro-native-shell/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/leung/taro-native-shell/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')

error: /Users/leung/taro-native-shell/ios/Pods/Target Support Files/Pods-taroDemoTests/Pods-taroDemoTests.debug.xcconfig: unable to open file (in target "taroDemoTests" in project "taroDemo") (in target 'taroDemoTests' from project 'taroDemo')

error: /Users/leung/taro-native-shell/ios/Pods/Target Support Files/Pods-taroDemoTests/Pods-taroDemoTests.debug.xcconfig: unable to open file (in target "taroDemoTests" in project "taroDemo") (in target 'taroDemoTests' from project 'taroDemo')

error: /Users/leung/taro-native-shell/ios/Pods/Target Support Files/Pods-taroDemoTests/Pods-taroDemoTests.debug.xcconfig: unable to open file (in target "taroDemoTests" in project "taroDemo") (in target 'taroDemoTests' from project 'taroDemo')

error: /Users/leung/taro-native-shell/ios/Pods/Target Support Files/Pods-taroDemoTests/Pods-taroDemoTests.debug.xcconfig: unable to open file (in target "taroDemoTests" in project "taroDemo") (in target 'taroDemoTests' from project 'taroDemo')

** BUILD FAILED **

Installing build/Build/Products/Debug-iphonesimulator/taroDemo.app
An error was encountered processing the command (domain=NSPOSIXErrorDomain, code=2):
Failed to install the requested application
An application bundle was not found at the provided path.
Provide a valid path to the desired application bundle.
Print: Entry, ":CFBundleIdentifier", Does Not Exist

Command failed: /usr/libexec/PlistBuddy -c Print:CFBundleIdentifier build/Build/Products/Debug-iphonesimulator/taroDemo.app/Info.plist
Print: Entry, ":CFBundleIdentifier", Does Not Exist
qiaoyixuan commented 4 years ago

+1

zouyang2015 commented 4 years ago

+1 一直不知道怎么解决

edenleung commented 4 years ago

@Pines-Cheng

zouyang2015 commented 4 years ago

给你们几个连接,试下 https://www.jianshu.com/p/2d656f2a7373 https://segmentfault.com/a/1190000015226878 https://www.jianshu.com/p/b318fb3d3705

我是重下载glog那些包后。执行cd node_modules/react-native && scripts/ios-install-third-party.sh && cd third-party && cd glog-0.3.4 && ./configure && cd ../../../..

Pines-Cheng commented 4 years ago

首先确定一下有没有 pod install

其次,如果 RN 依赖是 0.55.4,需要尝试 @zouyang2015 的方法。

0.59.9 不需要。

luckyGTL commented 2 years ago

RN 0.66和0.64也同样遇到了这个问题,有大佬跟进下吗

452MJ commented 2 years ago

Xcode能跑就行

LOWINC commented 2 years ago

Installing DoubleConversion (1.1.6)

[!] Error installing DoubleConversion
[!] /usr/local/bin/git clone https://github.com/google/double-conversion.git /var/folders/hv/f9z0_cj55wd0271c_mn_1l0r0000gn/T/d20220410-2338-18j9rrl --template= --single-branch --depth 1 --branch v1.1.6

Cloning into '/var/folders/hv/f9z0_cj55wd0271c_mn_1l0r0000gn/T/d20220410-2338-18j9rrl'...
error: RPC failed; curl 56 LibreSSL SSL_read: SSL_ERROR_SYSCALL, errno 54
fatal: The remote end hung up unexpectedly
fatal: early EOF
fatal: unpack-objects failed

这个一直装不上 有什么解决方法吗

zhiqingchen commented 2 years ago

加代理