반응형
에러가 2개 발생했다.
1. Could not find "Podfile.lock" at /경로/Podfile.lock. Did you run "pod install" in iOS directory?
2. Failed to build iOS project. We ran "xcodebuild" command but it exited with error code 65. To debug build logs further, consider Command line invocation: ...
실제 에러메시지
에러메시지를 텍스트로 복사
smilerush@SmileRushui-MacBookPro Example1ReactNative % npm run ios
> example1reactnative@0.0.1 ios
> react-native run-ios
error Could not find "Podfile.lock" at /Users/smilerush/Documents/GitHub/study-react-native/Example1ReactNative/ios/Podfile.lock. Did you run "pod install" in iOS directory?
info Found Xcode project "Example1ReactNative.xcodeproj"
info Launching iPhone 13 (iOS 15.0)
info Building (using "xcodebuild -project Example1ReactNative.xcodeproj -configuration Debug -scheme Example1ReactNative -destination id=60BDBAAF-DBF9-4AD2-B58B-62C0BF287375")
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 Example1ReactNative.xcodeproj.
Command line invocation:
/Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -project Example1ReactNative.xcodeproj -configuration Debug -scheme Example1ReactNative -destination id=60BDBAAF-DBF9-4AD2-B58B-62C0BF287375
User defaults from command line:
IDEPackageSupportUseBuiltinSCM = YES
note: Using new build system
note: Planning
Analyze workspace
Create build description
Build description signature: a0c316ff0b7772efa9c562d0c7d51690
Build description path: /Users/smilerush/Library/Developer/Xcode/DerivedData/Example1ReactNative-gyswfcdkhizprmcmpvlcbyqyufak/Build/Intermediates.noindex/XCBuildData/a0c316ff0b7772efa9c562d0c7d51690-desc.xcbuild
note: Build preparation complete
note: Building targets in dependency order
CreateBuildDirectory /Users/smilerush/Library/Developer/Xcode/DerivedData/Example1ReactNative-gyswfcdkhizprmcmpvlcbyqyufak/Build/Intermediates.noindex
cd /Users/smilerush/Documents/GitHub/study-react-native/Example1ReactNative/ios/Example1ReactNative.xcodeproj
builtin-create-build-directory /Users/smilerush/Library/Developer/Xcode/DerivedData/Example1ReactNative-gyswfcdkhizprmcmpvlcbyqyufak/Build/Intermediates.noindex
CreateBuildDirectory /Users/smilerush/Library/Developer/Xcode/DerivedData/Example1ReactNative-gyswfcdkhizprmcmpvlcbyqyufak/Build/Products
cd /Users/smilerush/Documents/GitHub/study-react-native/Example1ReactNative/ios/Example1ReactNative.xcodeproj
builtin-create-build-directory /Users/smilerush/Library/Developer/Xcode/DerivedData/Example1ReactNative-gyswfcdkhizprmcmpvlcbyqyufak/Build/Products
해결을 위한 시도들
sudo gem install cocoapods
sudo gem uninstall cocoapods
무한반복...
rm -rf Podfile.lock
rm -rf ~/.cocoapods/repos/trunk
pod repo update
pod update
pod install
arch -x86_64 pod install
sudo gem install ffi
해결방법 : 앞으로 난 이제 homebrew만 쓸래 ㅂㄷㅂㄷ
* brew uninstall cocoapods
싹 한번 지워주고
* brew install cocoapods
이렇게 brew로 설치한 후
* cd ios
* pod install
하니까 제대로 됨!
반응형
'React-Native 오류들' 카테고리의 다른 글
Node server is running and available on the same network - run 'npm start' from react-native root (0) | 2022.02.23 |
---|---|
Execution failed for task ':app:processDebugMainManifest' (0) | 2022.02.19 |
댓글