crazycodeboy / GitHubPopular

这是一个用来查看GitHub最受欢迎与最热项目的App,它基于React Native支持Android和iOS双平台。#适配RN最新版在这里☞#
http://coding.imooc.com/class/304.html
2.9k stars 580 forks source link

[Error][ios]Print: Entry, ":CFBundleIdentifier", Does Not Exist #76

Open linuxgg opened 6 years ago

linuxgg commented 6 years ago

@crazycodeboy [ENV] MacBook Pro (Retina, 15-inch, Mid 2015) OS version:10.13.4

xCode Version 9.3.1 (9E501)

[ISSUE] meet this issue when run react-native run-ios, but no issue when run react-native run-android


Check dependencies

CompileC /Users/tomlucky/otherCode/RN/GitHubPopular/ios/build/Build/Intermediates.noindex/SplashScreen.build/Debug-iphonesimulator/SplashScreen.build/Objects-normal/x86_64/SplashScreen.o SplashScreen.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler
    cd /Users/tomlucky/otherCode/RN/GitHubPopular/node_modules/react-native-splash-screen/ios
    export LANG=en_US.US-ASCII
    export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/Users/tomlucky/Library/Android/sdk/build-tools/27.0.3:/Users/tomlucky/Library/Android/sdk/platform-tools:/Library/Frameworks/Python.framework/Versions/3.6/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/Frameworks/Mono.framework/Versions/Current/Commands:/Users/tomlucky/tools/mysh:/Users/tomlucky/Library/Android/sdk/tools:/Users/tomlucky/Library/Android/sdk/platform-tools:/Users/tomlucky/tools/dex2jar-2.0"
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x objective-c -arch x86_64 -fmessage-length=154 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -fcolor-diagnostics -std=gnu99 -fobjc-arc -fmodules -fmodules-cache-path=/Users/tomlucky/otherCode/RN/GitHubPopular/ios/build/ModuleCache.noindex -fmodules-prune-interval=86400 -fmodules-prune-after=345600 -fbuild-session-file=/Users/tomlucky/otherCode/RN/GitHubPopular/ios/build/ModuleCache.noindex/Session.modulevalidation -fmodules-validate-once-per-build-session -Wnon-modular-include-in-framework-module -Werror=non-modular-include-in-framework-module -Wno-trigraphs -fpascal-strings -O0 -fno-common -Wno-missing-field-initializers -Wno-missing-prototypes -Werror=return-type -Wunreachable-code -Wno-implicit-atomic-properties -Werror=deprecated-objc-isa-usage -Werror=objc-root-class -Wno-arc-repeated-use-of-weak -Wduplicate-method-match -Wno-missing-braces -Wparentheses -Wswitch -Wunused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wempty-body -Wuninitialized -Wconditional-uninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wconstant-conversion -Wint-conversion -Wbool-conversion -Wenum-conversion -Wno-float-conversion -Wno-non-literal-null-conversion -Wno-objc-literal-conversion -Wshorten-64-to-32 -Wpointer-sign -Wno-newline-eof -Wno-selector -Wno-strict-selector-match -Wundeclared-selector -Wno-deprecated-implementations -DDEBUG=1 -DOBJC_OLD_DISPATCH_PROTOTYPES=0 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.3.sdk -fasm-blocks -fstrict-aliasing -Wprotocol -Wdeprecated-declarations -mios-simulator-version-min=7.0 -g -Wno-sign-conversion -Wno-infinite-recursion -Wno-comma -Wno-block-capture-autoreleasing -Wno-strict-prototypes -fobjc-abi-version=2 -fobjc-legacy-dispatch -index-store-path /Users/tomlucky/otherCode/RN/GitHubPopular/ios/build/Index/DataStore -iquote /Users/tomlucky/otherCode/RN/GitHubPopular/ios/build/Build/Intermediates.noindex/SplashScreen.build/Debug-iphonesimulator/SplashScreen.build/SplashScreen-generated-files.hmap -I/Users/tomlucky/otherCode/RN/GitHubPopular/ios/build/Build/Intermediates.noindex/SplashScreen.build/Debug-iphonesimulator/SplashScreen.build/SplashScreen-own-target-headers.hmap -I/Users/tomlucky/otherCode/RN/GitHubPopular/ios/build/Build/Intermediates.noindex/SplashScreen.build/Debug-iphonesimulator/SplashScreen.build/SplashScreen-all-target-headers.hmap -iquote /Users/tomlucky/otherCode/RN/GitHubPopular/ios/build/Build/Intermediates.noindex/SplashScreen.build/Debug-iphonesimulator/SplashScreen.build/SplashScreen-project-headers.hmap -I/Users/tomlucky/otherCode/RN/GitHubPopular/ios/build/Build/Products/Debug-iphonesimulator/include -I/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include -I/Users/tomlucky/otherCode/RN/GitHubPopular/node_modules/react-native-splash-screen/ios/../../../React -I../../react-native/React -I../../react-native/React/CSSLayout -I../../react-native/React/Executors -I../../react-native/React/Profiler -I../../react-native/React/Modules -I../../react-native/React/Views -I../../react-native/React/Base -I/Users/tomlucky/otherCode/RN/GitHubPopular/ios/build/Build/Intermediates.noindex/SplashScreen.build/Debug-iphonesimulator/SplashScreen.build/DerivedSources/x86_64 -I/Users/tomlucky/otherCode/RN/GitHubPopular/ios/build/Build/Intermediates.noindex/SplashScreen.build/Debug-iphonesimulator/SplashScreen.build/DerivedSources -F/Users/tomlucky/otherCode/RN/GitHubPopular/ios/build/Build/Products/Debug-iphonesimulator -MMD -MT dependencies -MF /Users/tomlucky/otherCode/RN/GitHubPopular/ios/build/Build/Intermediates.noindex/SplashScreen.build/Debug-iphonesimulator/SplashScreen.build/Objects-normal/x86_64/SplashScreen.d --serialize-diagnostics /Users/tomlucky/otherCode/RN/GitHubPopular/ios/build/Build/Intermediates.noindex/SplashScreen.build/Debug-iphonesimulator/SplashScreen.build/Objects-normal/x86_64/SplashScreen.dia -c /Users/tomlucky/otherCode/RN/GitHubPopular/node_modules/react-native-splash-screen/ios/SplashScreen.m -o /Users/tomlucky/otherCode/RN/GitHubPopular/ios/build/Build/Intermediates.noindex/SplashScreen.build/Debug-iphonesimulator/SplashScreen.build/Objects-normal/x86_64/SplashScreen.o
In file included from /Users/tomlucky/otherCode/RN/GitHubPopular/node_modules/react-native-splash-screen/ios/SplashScreen.m:10:
/Users/tomlucky/otherCode/RN/GitHubPopular/node_modules/react-native-splash-screen/ios/SplashScreen.h:9:9: fatal error: 'React/RCTBridgeModule.h' file not
      found
#import <React/RCTBridgeModule.h>
        ^~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.

=== BUILD TARGET RCTGeolocation OF PROJECT RCTGeolocation WITH CONFIGURATION Debug ===

Check dependencies

=== BUILD TARGET RCTNetwork OF PROJECT RCTNetwork WITH CONFIGURATION Debug ===

Check dependencies

=== BUILD TARGET RCTActionSheet OF PROJECT RCTActionSheet WITH CONFIGURATION Debug ===

Check dependencies

=== BUILD TARGET RCTImage OF PROJECT RCTImage WITH CONFIGURATION Debug ===

Check dependencies

** BUILD FAILED **

The following build commands failed:
    CompileC /Users/tomlucky/otherCode/RN/GitHubPopular/ios/build/Build/Intermediates.noindex/SplashScreen.build/Debug-iphonesimulator/SplashScreen.build/Objects-normal/x86_64/SplashScreen.o SplashScreen.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler
(1 failure)
Installing build/Build/Products/Debug-iphonesimulator/GitHubPopular.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/GitHubPopular.app/Info.plist
Print: Entry, ":CFBundleIdentifier", Does Not Exist
NeverLuckyLiu commented 5 years ago

Have you solved this problem? I came across the same error with you...need help!!

dongliang36k commented 5 years ago

Have you solved this problem? I came across the same error with you...need help!!

linuxgg commented 5 years ago

@NeverLuckyLiu @dongliang36k

no.