[Xcode] clang: error: SDK does not contain 'libarclite' at the path '/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/arc/libarclite_iphonesimulator.a'; try increasing the minimum deployment target
·
iOS 에러!
clang: error: SDK does not contain 'libarclite' at the path '/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/arc/libarclite_iphonesimulator.a'; try increasing the minimum deployment target 코드 문제가 아닌 저런 프로젝트 에러가 발생하면 정말 슬프고도 짜증난다.. 아이씨 또 뭐야~~~~사실 대체로 뭐 어케 하라고 써주긴 한다. 저기도 보면  try increasing the minimum deployment target이렇게 되어있는데, 말 그대로 deployment target 버전 올려..
[Swift/iOS] Missing argument for parameter 'from' in call 에러 분석하기!
·
iOS 에러!
이번에도 기초가 부족해서 생긴 에러! 분석해보고 다시는 이런 일이 없도록 해보자^^... (이렇게라도 부족한 기초.. 채우자 녕아..ㅎ) 이 에러가 발생하게 된 경위부터 거슬러 올라가 보자. let category = CategoryResponse() struct CategoryResponse: Decodable{ let code: Int let message: String let result: String } //Result 생략 Codable 구조체를 만들어서 새로운 객체를 선언해줬다. 이 경우 에러가 발생하는데, 이는 이 객체 struct, class를 초기화하지 않았기 때문이다. Swift 내에 있는 모든 객체는 초기화를 해줘야 한다. class의 경우, 이니셜 라이저를 꼭 정의해줘야 하지만, s..
[Swift/iOS] Fatal error: Unexpectedly found nil while unwrapping an Optional value 분석하기!
·
iOS 에러!
앱을 만들다 보면 여러 에러가 발생하곤 하는데, 이럴 땐 구글링 해보고 바로 적용해서 에러를 해결했다. 사실 이렇게 하면 왜 이런 에러가 발생했는지 알지 못할 뿐만 아니라 다음에 또 에러가 발생할 수 있다...! 이를 방지하기 위함 + 멋진 iOS 개발자가 되기 위해 정리하면서 학습하기로 했다🔥🔥 Unexpectedly found nil while unwrapping an Optional value 옵셔널 값을 벗기는 도중에 예상하지 못한 nil이 발견되었다 라는 메세지다. 우선, Optional 개념에 대해 다시 생각해보자. Swift는 사용하는 값의 타입을 명료하게 해주는 type-safe 언어다. 만약 String을 사용하려고 할 때, type safety는 실수로 그것을 Int에 넘기지 않도록 해..
[Swift/iOS] UIButton Title 값이 nil 로 나올 때
·
iOS 에러!
UIButton을 사용하다 보니 계속 title 값이 nil로 나오는 현상이 발생했다. import UIKit class ViewController: UIViewController { @IBOutlet var cardButtons: [UIButton]! var emojiChoices = ["👻", "🎃"] func flipCard(withEmoji emoji: String, on button: UIButton){ print("\(emoji) | \(button.currentTitle)") if button.currentTitle == emoji { button.setTitle("", for: .normal) button.backgroundColor = UIColor.orange }else{ button...
녕이
'iOS 에러!' 카테고리의 글 목록