React Nativeでアプリを開発してみたいと思い、以下の記事を参考にReact Nativeの導入を試みました。
しかし、アプリが起動せずシミュレーターが起動するだけになってしまいます。
error
1 2error Could not find "Podfile.lock" at /Users/yusuke/AwesomeProject/ios/Podfile.lock. Did you run "pod install" in iOS directory? 3info Found Xcode project "AwesomeProject.xcodeproj" 4info Building (using "xcodebuild -project AwesomeProject.xcodeproj -configuration Debug -scheme AwesomeProject -destination id=FC367A6B-D458-4BCB-8A84-AA0E5FF8D9C1 -derivedDataPath build/AwesomeProject") 5............. 6error 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 AwesomeProject.xcodeproj. Run CLI with --verbose flag for more details. 7User defaults from command line: 8 IDEDerivedDataPathOverride = /Users/yusuke/AwesomeProject/ios/build/AwesomeProject 9 10note: Using new build system 11note: Planning build 12note: Using build description from disk 13warning: 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 AwesomeProject editor. (in target 'AwesomeProject' from project 'AwesomeProject') 14PhaseScriptExecution Start\ Packager /Users/yusuke/AwesomeProject/ios/build/AwesomeProject/Build/Intermediates.noindex/AwesomeProject.build/Debug-iphonesimulator/AwesomeProject.build/Script-FD10A7F022414F080027D42C.sh (in target 'AwesomeProject' from project 'AwesomeProject') 15 cd /Users/yusuke/AwesomeProject/ios 16 /bin/sh -c /Users/yusuke/AwesomeProject/ios/build/AwesomeProject/Build/Intermediates.noindex/AwesomeProject.build/Debug-iphonesimulator/AwesomeProject.build/Script-FD10A7F022414F080027D42C.sh 17Connection to localhost port 8081 [tcp/sunproxyadmin] succeeded! 18 19CompileC /Users/yusuke/AwesomeProject/ios/build/AwesomeProject/Build/Intermediates.noindex/AwesomeProject.build/Debug-iphonesimulator/AwesomeProject.build/Objects-normal/x86_64/main.o /Users/yusuke/AwesomeProject/ios/AwesomeProject/main.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler (in target 'AwesomeProject' from project 'AwesomeProject') 20 cd /Users/yusuke/AwesomeProject/ios 21 export LANG=en_US.US-ASCII 22 /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x objective-c -target x86_64-apple-ios9.0-simulator -fmessage-length=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -std=gnu99 -fobjc-arc -fmodules -gmodules -fmodules-cache-path=/Users/yusuke/AwesomeProject/ios/build/AwesomeProject/ModuleCache.noindex -fmodules-prune-interval=86400 -fmodules-prune-after=345600 -fbuild-session-file=/Users/yusuke/AwesomeProject/ios/build/AwesomeProject/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 -Wno-objc-interface-ivars -Werror=objc-root-class -Wno-arc-repeated-use-of-weak -Wimplicit-retain-self -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 -Wnon-literal-null-conversion -Wobjc-literal-conversion -Wshorten-64-to-32 -Wpointer-sign -Wno-newline-eof -Wno-selector -Wno-strict-selector-match -Wundeclared-selector -Wdeprecated-implementations -DDEBUG=1 -DOBJC_OLD_DISPATCH_PROTOTYPES=0 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk -fasm-blocks -fstrict-aliasing -Wprotocol -Wdeprecated-declarations -g -Wno-sign-conversion -Winfinite-recursion -Wcomma -Wblock-capture-autoreleasing -Wstrict-prototypes -Wno-semicolon-before-method-body -fobjc-abi-version=2 -fobjc-legacy-dispatch -index-store-path /Users/yusuke/AwesomeProject/ios/build/AwesomeProject/Index/DataStore -iquote /Users/yusuke/AwesomeProject/ios/build/AwesomeProject/Build/Intermediates.noindex/AwesomeProject.build/Debug-iphonesimulator/AwesomeProject.build/AwesomeProject-generated-files.hmap -I/Users/yusuke/AwesomeProject/ios/build/AwesomeProject/Build/Intermediates.noindex/AwesomeProject.build/Debug-iphonesimulator/AwesomeProject.build/AwesomeProject-own-target-headers.hmap -I/Users/yusuke/AwesomeProject/ios/build/AwesomeProject/Build/Intermediates.noindex/AwesomeProject.build/Debug-iphonesimulator/AwesomeProject.build/AwesomeProject-all-target-headers.hmap -iquote /Users/yusuke/AwesomeProject/ios/build/AwesomeProject/Build/Intermediates.noindex/AwesomeProject.build/Debug-iphonesimulator/AwesomeProject.build/AwesomeProject-project-headers.hmap -I/Users/yusuke/AwesomeProject/ios/build/AwesomeProject/Build/Products/Debug-iphonesimulator/include -I/Users/yusuke/AwesomeProject/ios/build/AwesomeProject/Build/Intermediates.noindex/AwesomeProject.build/Debug-iphonesimulator/AwesomeProject.build/DerivedSources-normal/x86_64 -I/Users/yusuke/AwesomeProject/ios/build/AwesomeProject/Build/Intermediates.noindex/AwesomeProject.build/Debug-iphonesimulator/AwesomeProject.build/DerivedSources/x86_64 -I/Users/yusuke/AwesomeProject/ios/build/AwesomeProject/Build/Intermediates.noindex/AwesomeProject.build/Debug-iphonesimulator/AwesomeProject.build/DerivedSources -F/Users/yusuke/AwesomeProject/ios/build/AwesomeProject/Build/Products/Debug-iphonesimulator -MMD -MT dependencies -MF /Users/yusuke/AwesomeProject/ios/build/AwesomeProject/Build/Intermediates.noindex/AwesomeProject.build/Debug-iphonesimulator/AwesomeProject.build/Objects-normal/x86_64/main.d --serialize-diagnostics /Users/yusuke/AwesomeProject/ios/build/AwesomeProject/Build/Intermediates.noindex/AwesomeProject.build/Debug-iphonesimulator/AwesomeProject.build/Objects-normal/x86_64/main.dia -c /Users/yusuke/AwesomeProject/ios/AwesomeProject/main.m -o /Users/yusuke/AwesomeProject/ios/build/AwesomeProject/Build/Intermediates.noindex/AwesomeProject.build/Debug-iphonesimulator/AwesomeProject.build/Objects-normal/x86_64/main.o 23In file included from /Users/yusuke/AwesomeProject/ios/AwesomeProject/main.m:10: 24/Users/yusuke/AwesomeProject/ios/AwesomeProject/AppDelegate.h:8:9: fatal error: 'React/RCTBridgeDelegate.h' file not found 25#import <React/RCTBridgeDelegate.h> 26 ^~~~~~~~~~~~~~~~~~~~~~~~~~~ 271 error generated. 28 29 30** BUILD FAILED ** 31 32 33The following build commands failed: 34 CompileC /Users/yusuke/AwesomeProject/ios/build/AwesomeProject/Build/Intermediates.noindex/AwesomeProject.build/Debug-iphonesimulator/AwesomeProject.build/Objects-normal/x86_64/AppDelegate.o /Users/yusuke/AwesomeProject/ios/AwesomeProject/AppDelegate.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler 35 CompileC /Users/yusuke/AwesomeProject/ios/build/AwesomeProject/Build/Intermediates.noindex/AwesomeProject.build/Debug-iphonesimulator/AwesomeProject.build/Objects-normal/x86_64/main.o /Users/yusuke/AwesomeProject/ios/AwesomeProject/main.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler 36(2 failures)
初めてのReact Nativeでわからないことも多く、解決方法をご教示していただけたら幸いです。
回答1件
あなたの回答
tips
プレビュー