이전 포스팅도 마찬가지였지만, M1으로 프로젝트를 하다보니 말썽이 자꾸 생긴다.
이상하게도 지난번 프로젝트에서는 pod가 이렇게까지는 애를 먹이지 않았는데 이번에는 살짝 황당하게 만드는 상태라 정리를 해 두고자 한다.
현재 사용하고 있는 장비는 iMac (24-inch, M1, 2021) MacOS Monterey이다. 나만 이런것이 아닌듯 구글 검색을 하면 많이 나온다.
그런데 그 방식대로 했을 경우 제대로 되지 않았는데 지나고 보니 두서 없이 막 하다보니 꼬인듯하다.
월요일 아침 출근해서 한 단계식 진행을 하니 정상적으로 빌드가 되었다. ^^;
Last login: Mon Apr 11 08:05:35 on console
~ % sudo gem uninstall cocoapods
Gem 'cocoapods' is not installed
~ % brew install cocoapods
Warning: cocoapods 1.11.3 is already installed, it's just not linked.
To link this version, run:
brew link cocoapods
~ % brew update --preinstall
~ % sudo arch -x86_64 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
~ % pod
zsh: command not found: pod
~ % sudo gem install cocoapods
Fetching cocoapods-1.11.3.gem
Successfully installed cocoapods-1.11.3
Parsing documentation for cocoapods-1.11.3
Installing ri documentation for cocoapods-1.11.3
Done installing documentation for cocoapods after 1 seconds
1 gem installed
~ % pod
Usage:
$ pod COMMAND
CocoaPods, the Cocoa library package manager.
Commands:
+ cache Manipulate the CocoaPods cache
+ deintegrate Deintegrate CocoaPods from your project
+ env Display pod environment
+ init Generate a Podfile for the current directory
+ install Install project dependencies according to versions from a
Podfile.lock
+ ipc Inter-process communication
+ lib Develop pods
+ list List pods
+ outdated Show outdated project dependencies
+ plugins Show available CocoaPods plugins
+ repo Manage spec-repositories
+ search Search for pods
+ setup Setup the CocoaPods environment
+ spec Manage pod specs
+ trunk Interact with the CocoaPods API (e.g. publishing new specs)
+ try Try a Pod!
+ update Update outdated project dependencies and create new Podfile.lock
Options:
--allow-root Allows CocoaPods to run as root
--silent Show nothing
--version Show the version of the tool
--verbose Show more debugging information
--no-ansi Show output without ANSI codes
--help Show help banner of specified command
~ % sudo arch -x86_64 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
% arch -x86_64 pod install
Analyzing dependencies
Downloading dependencies
Installing Brightcove-Player-Core 6.10.3 (was 6.10.2)
Installing DeviceKit 4.6.0 (was 4.5.2)
Installing Firebase 8.14.0 (was 8.13.0)
Installing FirebaseCore 8.14.0 (was 8.13.0)
Installing FirebaseCoreDiagnostics 8.14.0 (was 8.13.0)
Installing FirebaseInstallations 8.14.0 (was 8.13.0)
Installing FirebaseMessaging 8.14.0 (was 8.13.0)
Installing SendBirdSDK 3.1.12 (was 3.1.8)
Generating Pods project
Integrating client project
Pod installation complete! There are 35 dependencies from the Podfile and 50 total pods installed.
[!] The `xxxx [Debug]` target overrides the `EXCLUDED_ARCHS[sdk=iphonesimulator*]` build setting defined in `Pods/Target Support Files/Pods-xxxx/Pods-xxxx.debug.xcconfig'. This can lead to problems with the CocoaPods installation
- Use the `$(inherited)` flag, or
- Remove the build settings from the target.
[!] The `xxxx [Release]` target overrides the `EXCLUDED_ARCHS[sdk=iphonesimulator*]` build setting defined in `Pods/Target Support Files/Pods-xxxx/Pods-xxxx.release.xcconfig'. This can lead to problems with the CocoaPods installation
- Use the `$(inherited)` flag, or
- Remove the build settings from the target.
M1의 경우 1386, 그 이전에는 x86_64 이 버전에 따른 라이브러리 지원에 문제가 있는 것 같은데 ...
여튼, 뭔가 uninstall을 한 다음엔 맥을 종료했다가 재 시작 후 시작하는 것이 좋은 것 같다.
'IT.인터넷 > Mac' 카테고리의 다른 글
mac os sdkman 설치 및 springboot-cli 관련 명령어 몇 개 (0) | 2023.01.05 |
---|---|
Macbook M1 Pro에서 부딪히는 문제 - pod install error (0) | 2022.03.04 |
mac npm설치(with homebrew) (0) | 2021.02.24 |
Homebrew를 사용하여 Mac에 OpenJDK 11을 설치하는 방법 (0) | 2020.06.25 |
Mac Java 버전 변경 (0) | 2019.03.21 |