## man xcode-select ## xcode-select - Manages the active developer directory for Xcode and BSD ## tools. ## --install ## Opens a user interface dialog to request automatic installation ## of the command line developer tools. xcode-select --install
if [ -d "$HOME/.rncache" ]; then cachedir="$HOME/.rncache"# react-native 0.57.8 and older else cachedir="$HOME/Library/Caches/com.facebook.ReactNativeBuild" fi mkdir -p "$cachedir" ...
Installing build/Build/Products/Debug-iphonesimulator/AwesomeProject.app An error was encountered processing the command (domain=NSPOSIXErrorDomain, code=22): Failed to install the requested application The bundle identifier of the application could not be determined. Ensure that the application's Info.plist contains a value for CFBundleIdentifier. Print: Entry, ":CFBundleIdentifier", Does Not Exist Command failed: /usr/libexec/PlistBuddy -c Print:CFBundleIdentifier build/Build/Products/Debug-iphonesimulator/AwesomeProject.app/Info.plist Print: Entry, ":CFBundleIdentifier", Does Not Exist Error: Command failed: /usr/libexec/PlistBuddy -c Print:CFBundleIdentifier build/Build/Products/Debug-iphonesimulator/AwesomeProject.app/Info.plist Print: Entry, ":CFBundleIdentifier", Does Not Exist at checkExecSyncError (child_process.js:637:11) at Object.execFileSync (child_process.js:655:13) at Promise.then (/Users/Jason/WebstormProjects/AwesomeProject/node_modules/react-native/local-cli/runIOS/runIOS.js:208:5) at processTicksAndRejections (internal/process/next_tick.js:81:5)
再往上看,编译时就已经失败了
1 2 3 4
❌ /Users/Jason/WebstormProjects/AwesomeProject/node_modules/react-native/third-party/folly-2018.10.22.00/folly/detail/RangeCommon.h:22:10: 'glog/logging.h' file not found
target 'AnNativeApp' do # Uncomment the next line if you're using Swift or would like to use dynamic frameworks # use_frameworks! # Your 'node_modules' directory is probably in the root of your project, # but if not, adjust the `:path` accordingly pod 'React', :path => '../node_modules/react-native', :subspecs => [ 'Core', 'CxxBridge', # Include this for RN >= 0.47 'DevSupport', # Include this to enable In-App Devmenu if RN >= 0.43 'RCTText', 'RCTNetwork', 'RCTWebSocket', # Needed for debugging 'RCTAnimation', # Needed for FlatList and animations running on native UI thread # Add any other subspecs you want to use in your project ] # Explicitly include Yoga if you are using RN >= 0.42.0 pod 'yoga', :path => '../node_modules/react-native/ReactCommon/yoga'
# Third party deps podspec link pod 'DoubleConversion', :podspec => '../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec' pod 'glog', :podspec => '../node_modules/react-native/third-party-podspecs/glog.podspec' pod 'Folly', :podspec => '../node_modules/react-native/third-party-podspecs/Folly.podspec'
target 'AnNativeAppTests' do inherit! :search_paths # Pods for testing end
target 'AnNativeAppUITests' do inherit! :search_paths # Pods for testing end
Cloning into '/var/folders/lk/znn1qp4925j412wt4t_qkplc0000gn/T/d20190222-11171-yp7x2'... error: RPC failed; curl 18 transfer closed with outstanding read data remaining fatal: The remote end hung up unexpectedly fatal: early EOF fatal: index-pack failed
因为仓库太大了,搜索后大致有两种办法
方式一
1 2 3 4 5 6 7
## man git-config
## http.postBuffer ## Maximum size in bytes of the buffer used by smart HTTP transports when POSTing data to the remote system. For requests larger than ## this buffer size, HTTP/1.1 and Transfer-Encoding: chunked is used to avoid creating a massive pack file locally. Default is 1 MiB, ## which is sufficient for most requests. git config --global http.postBuffer 524288000
方式二
1 2 3
git clone http://github.com/large-repository --depth 1 cd large-repository git fetch --unshallow
# Downloads the Pod from the given `request` # # @param [Request] request # the request to be downloaded. # # @return [Response] the response from downloading `request` # defdownload_pod(request) cached_pod(request) || uncached_pod(request) rescue Informative raise rescue raise end
# Clones the repo. If possible the repo will be shallowly cloned. # # @note The `:commit` option requires a specific strategy as it is not # possible to specify the commit to the `clone` command. # # @note `--branch` command line option can also take tags and detaches # the HEAD. # # @param [Bool] force_head # If any specific option should be ignored and the HEAD of the # repo should be cloned. # # @param [Bool] shallow_clone # Whether a shallow clone of the repo should be attempted, if # possible given the specified {#options}. # def clone(force_head = false, shallow_clone = true) ui_sub_action('Git download') do begin git! clone_arguments(force_head, shallow_clone) update_submodules rescue DownloaderError => e if e.message =~ /^fatal:.*does not support (--depth|shallow capabilities)$/im clone(force_head, false) else raise end end end end
When you build a React Native application, you use the React Native packager to create an index.bundle that will be served by the React Native server. Inside index.bundle will be our RNHighScore module. So, we need to point our RCTRootView to the location of the index.bundle resource (via NSURL) and tie it to the module.