개발

개발/아이오에스

m1맥북 brew install 오류(ROSETTA2) Error: Cannot install under Rosetta 2 in ARM default prefix (/opt/homebrew)!

Error: Cannot install under Rosetta 2 in ARM default prefix (/opt/homebrew)! To rerun under ARM use: arch -arm64 brew install ... To install under x86_64, install Homebrew into /usr/local. 라는 에러.... intel,m1 경로차이 때문에 생기는 에러인것 같습니다. 해결방법 >> arch -arm64 brew install XXXXX

개발/아이오에스

swift] 내 앱 설정화면으로 이동하기

guard let url = URL(string: UIApplication.openSettingsURLString) else { return } if UIApplication.shared.canOpenURL(url) { UIApplication.shared.opne(url) } https://developer.apple.com/documentation/uikit/uiapplicationopensettingsurlstring?language=objc

개발/아이오에스

[IOS] Date 사용해서 하루(24시간)경과 체크하기

UserDefaults.standard.set(Date(), forKey:"creationTime1") if let date = UserDefaults.standard.object(forKey: "creationTime1") as? Date { if let diff = Calendar.current.dateComponents([.hour], from: date, to: Date()).hour, diff > 24 { keys.setNewTokenValue() } }

개발/아이오에스

swift ] 웹뷰 안에 링크연결 안될 때

self.webView.uiDelegate = self uiDelegate 선언 func webView(_ webView: WKWebView, createWebViewWith configuration: WKWebViewConfiguration, for navigationAction: WKNavigationAction, windowFeatures: WKWindowFeatures) -> WKWebView? { if navigationAction.targetFrame == nil { webView.load(navigationAction.request) } return nil }

개발/아이오에스

[pod error]-Could not find 'CFPropertyList' (>= 2.3.3, < 4.0) among 83 total gem(s) (Gem::MissingSpecError)Checked in 'GEM_PATH=/Users/dev.geeyong/.rvm/gems/ruby-3.0.0:/Users/dev.geeyong/.rvm/rubies/ruby-3.0.0/lib/ruby/gems/3.0.0:/usr/local/Cellar/cocoa..

Could not find 'CFPropertyList' (>= 2.3.3, Could not find 'cocoapods' (>= 0) among N total gem(s) (Gem::LoadError) When I am trying to pod install, getting following issue: Faizs-MBP:newj faizfareed$ pod install /Library/Ruby/Site/2.0.0/rubygems/dependency.rb:315:in `to_specs': Could not find 'cocoapods' (>... stackoverflow.com sudo gem uninstall --all sudo gem install -n /usr/local/bin cocoapod..

dev.jake
'개발' 카테고리의 글 목록 (2 Page)