M2 맥북에어 개발 환경 설정

2022. 10. 31. 00:50아이폰 개발

1. pod install 에러

Xcode 설치 후 이전에 작업하던 프로젝트를 가져와서 pod install을 하려니 다음과 같은 에러가 발생한다. M2에서는 gem으로 cocoapod를 설치하면 안되는 듯.

$ sudo gem install cocoapods

그래서 일단은 uninstall 하고, 

sudo gem uninstall cocoapods

homebrew로 인스톨을 하기 위해 당연히 homebrew를 먼저 설치해줘야 한다.

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

brew install cocoapods

이제는 pod install이 정상 동작한다.

 

2. Xcode 14 build error: Stored properties cannot be marked potentially unavailable with '@available' 에러 발생

https://stackoverflow.com/questions/41904724/using-available-with-stored-properties/73699790#73699790

 

Using @available with stored properties

I have an app that uses local notifications and supports iOS 10. I am trying to add iOS 9 support which requires me to use the old location notification API. I am trying to use @available and #avai...

stackoverflow.com

updating the platform to iOS 14 in Podfile.

platform :ios, '14.0'