반응형
Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 | 29 |
30 | 31 |
Tags
- 코로나
- 체당금
- Bootstrap
- php
- 보정명령
- 당사자표시정정신청서
- Java
- Laravel
- 홈택스
- auth
- 소액임금체불
- Python
- 전자소송
- elasticSearch
- as후기
- win32
- 개인사업자
- Blade
- blockchain
- javascript
- 인민공원
- reactnative
- vue
- Sentinel
- Eclipse
- Tutorial
- 코로나19
- 사업자계좌
- cartalyst
- 이더리움
Archives
- Today
- Total
그냥 사는 이야기
React Native - pod install load error (M1 issue) 본문
반응형
문제 내용
react-native-maps 패키지를 사용하기 위해 install 후 pod install에서 다음과 같은 에러가 발생하였습니다.
npx pod-install ios
Scanning for pods...
1.11.3
> pod install
Auto-linking React Native modules for target `Workbnb`: RNCMaskedView, RNGestureHandler, RNReanimated, RNScreens, RNVectorIcons, react-native-maps, react-native-pager-view, and react-native-safe-area-context
Analyzing dependencies
――― MARKDOWN TEMPLATE ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――
### Command
```
/usr/local/bin/pod install --ansi
```
### Report
* What did you do?
* What did you expect to happen?
* What happened instead?
### Stack
```
CocoaPods : 1.11.3
Ruby : ruby 2.6.8p205 (2021-07-07 revision 67951) [universal.arm64e-darwin21]
RubyGems : 3.0.3.1
Host : macOS 12.1 (21C52)
Xcode : 13.2.1 (13C100)
Git : git version 2.32.0 (Apple Git-132)
Ruby lib dir : /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib
Repositories : trunk - CDN - https://cdn.cocoapods.org/
...
### Error
```
LoadError - dlopen(/Library/Ruby/Gems/2.6.0/gems/ffi-1.15.5/lib/ffi_c.bundle, 0x0009): tried: '/Library/Ruby/Gems/2.6.0/gems/ffi-1.15.5/lib/ffi_c.bundle' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64e')), '/usr/lib/ffi_c.bundle' (no such file) - /Library/Ruby/Gems/2.6.0/gems/ffi-1.15.5/lib/ffi_c.bundle
/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require'
/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require'
/Library/Ruby/Gems/2.6.0/gems/ffi-1.15.5/lib/ffi.rb:5:in `rescue in <top (required)>'
/Library/Ruby/Gems/2.6.0/gems/ffi-1.15.5/lib/ffi.rb:2:in `<top (required)>'
/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require'
/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require'
/Library/Ruby/Gems/2.6.0/gems/ethon-0.15.0/lib/ethon.rb:3:in `<top (required)>'
/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require'
...
이하 생략
구글링해보니 필요한건 ffi 설치가 필요했습니다.
sudo gem install ffi
하지만 이후로도 문제는 개선되지 않았습니다. 조금 더 찾아보니 결국은 나도 Mac M1 이슈였던 것 같습니다.
이전까지는 pod install에 딱히 문제가 없었는데... 아직 이슈가 있긴 있군요. Error on M1 Mac #10287 에서 한참 보다가 나에게 맞는 것을 찾았습니다.
우선 Rosetta 를 사용한 terminal 을 위해 iterm을 복제하여 Rosetta 옵션을 체크해줬습니다.
그런 후 Rosetta 옵션을 활성화한 iTerm을 실행한 후 모든 작업을 다시 해줬습니다. 하는 김에 cocoapods 도 새로 업데이트 했습니다.
~/repo/Workbnb main ± sudo gem install cocoapods
Password:
Successfully installed cocoapods-1.11.3
Parsing documentation for cocoapods-1.11.3
Done installing documentation for cocoapods after 1 seconds
1 gem installed
~/repo/Workbnb main ± sudo gem install ffi
Building native extensions. This could take a while...
Successfully installed ffi-1.15.5
Parsing documentation for ffi-1.15.5
Done installing documentation for ffi after 3 seconds
1 gem installed
~/repo/Workbnb main ± npx pod-install ios
Scanning for pods...
1.11.3
> pod install
Auto-linking React Native modules for target `Workbnb`: RNCMaskedView, RNGestureHandler, RNReanimated, RNScreens, RNVectorIcons, react-native-maps, react-native-pager-view, and react-native-safe-area-context
Analyzing dependencies
Downloading dependencies
Installing Google-Maps-iOS-Utils (3.10.3)
Installing GoogleMaps (5.1.0)
Installing react-native-google-maps (0.30.1)
Generating Pods project
Integrating client project
Pod installation complete! There are 63 dependencies from the Podfile and 55 total pods installed.
다 잘되었습니다. ^^;
'Development > App' 카테고리의 다른 글
React Native 에서 폰트(Font) 추가하기 (0) | 2022.08.29 |
---|---|
React Native에서 AWS Appsync의 subscription reconnect 시키기 (0) | 2022.06.10 |
Apple Appstore 심사거절 - Guideline 2.3.10 - Performance - Accurate Metadata (0) | 2022.05.20 |
React Native에서 Sound 재생하기 (0) | 2022.03.02 |
Comments