개발
-
Swift 커스텀뷰 만들어서 재사용하기 (UIButton)개발/Swift 2021. 4. 22. 17:49
세팅 링크 참고하여 만듬 https://medium.com/flawless-app-stories/reusable-uiviews-in-swift-3f9dca63eaf4 NextButton 이라는 View 클래스와 xib 파일 만들고 xib 에서 디자인 하고 , view에서 init 함수만 만들어준다. 그리고 nib을 클래스 이름과 맞춰 로드 해준다. class NextButton: UIView { @IBOutlet weak var nextButton: UIButton! override init(frame: CGRect) { super.init(frame: frame) commonInit() } required init?(coder: NSCoder) { super.init(coder: coder) commo..
-
Swift Fastlane + SwiftLint + GitlabCI 연동하기개발/Swift 2021. 4. 9. 17:05
Modern Collection View 와 MVVM 패턴 가이드 [iOS] Modern Collection View & MVVM 패턴 가이드 - 인프런 | 강의 MVVM 패턴과 Modern Collection View를 사용해 네트워킹을 구현하고, 다양하고 동적인 Collection View를 자유자재로 다룰 수 있게 됩니다., Swift iOS UI, 제대로 다루는 핵심 기술! 📲 iOS Swift 레이아웃 구현을 www.inflearn.com Gitlab Runner 세팅 참조 : https://medium.com/@phanquanghoang/using-gitlab-ci-cd-fastlane-for-ios-project-part-1-5e7db82a3566 Gitlab Runner 를 우선 등록해줘야..
-
Appstore 없이 Xcode 설치하는법개발/Swift 2021. 4. 9. 11:29
Modern Collection View 와 MVVM 패턴 가이드 [iOS] Swift Modern Collection View & MVVM 패턴 가이드 | 덤벨로퍼 - 인프런덤벨로퍼 | MVVM 패턴과 Modern Collection View를 사용해 네트워킹을 구현하고, 다양하고 동적인 Collection View를 자유자재로 다룰 수 있게 됩니다., Swift iOS UI, 제대로 다루는 핵심 기술! 📲 iOS Swift 레이www.inflearn.com 로그인 문제로 Xcode 를 앱스토어에 받을수없어 웹에서 받아 설치하려한다.developer.apple.com/download/more/ 여기가면 버전별로 Xcode를 다운 받을수있다.다운이 완료된 .xip 파일을 실행하면 해당 폴더에 xcod..
-
Fastfile Gitlab ci 연동 에러 문제 해결방법개발/Swift 2021. 4. 8. 18:38
1. Invalid username and password combination 우리가 터미널에서 하듯이 interaction이 불가능 하기때문에 입력해야할 정보들을 미리 넣어줘야한다. 그중 계정 Password 를 Fastfile 에 넣어줬었는데 이게 잘못 들어갔었다. ENV["FASTLANE_PASSWORD"] = "계정비밀번호" ENV["MATCH_PASSWORD"] = "match 비밀번호" match password 는 match init 할때 지정했을 것이다. 2. Please enter the 6 digit code: 이중인증을 해줘야하는데 fastlane spaceauth -u 애플계정 을 입력하여 이중인증을 해주면 된다. 해당 작업은 gitlab ci 가 돌아갈 서버 컴퓨터에서 해야한다...
-
fastlane 에 swiftlint 추가하기개발/Swift 2021. 4. 8. 11:24
swiftlint file 을 다음과같이 작성했다. disabled_rules: - colon - comma - control_statement - trailing_whitespace opt_in_rules: - missing_docs included: excluded: - Carthage - Pods force_cast: warning force_try: severity: warning line_length: 200 type_body_length: - 300 trailing_whitespace : 1 identifier_name: allowed_symbols: "_" min_length: 3 shorthand_operator: warning fastlane 과 연동하려한다. Fastfile에 lint ..
-
Gitlab Runner Register개발/Swift 2021. 4. 8. 11:00
깃랩 러너를 다운로드받는다. sudo curl — output /usr/local/bin/gitlab-runner https://gitlab-runner-downloads.s3.amazonaws.com/latest/binaries/gitlab-runner-darwin-amd64 다운받은 후에 실행 권한을 주고 sudo chmod +x /usr/local/bin/gitlab-runner 나의 프로젝트에 가서 gitlab runner 를 register 해준다. gitlab-runner register 그러면 URL 과 토큰 두가지를 물어본다. 깃랩 Setting -> CI/CD -> Runners 에가보면 URL 과 /TOKEN 정보를 볼수있다. 그리고 tags 를 입력해주는데 이것을 나중에 yml 파일 ..
-
fastlane ($(MARKETING_VERSION)) does not respect the format A or A.B or A.B.C 오류 해결개발/Swift 2021. 3. 23. 16:01
Fastlane 을 사용하려던 중 version과 build number 세팅을 하다가 에러가 발생했다. version = increment_version_number( bump_type: "patch" ) increment_build_number( build_number: latest_testflight_build_number + 1, ) 프로젝트 폴더에 가서 xcrun agvtool new-marketing-version 0.0.1 하니 해당 에러가 발생하지 않음, 결국 $MARKETING_VERSION을 못읽는듯함 developer.apple.com/library/archive/qa/qa1827/_index.html 여기 써있는데로 Target -> Info 가서 1. CurrentProjectVe..
-
부모 viewController에서 addSubview 를 통해 뷰를 노출 시키는 방법개발/Swift 2021. 3. 22. 18:39
[iOS] Modern Collection View & MVVM 패턴 가이드 - 인프런 | 강의 MVVM 패턴과 Modern Collection View를 사용해 네트워킹을 구현하고, 다양하고 동적인 Collection View를 자유자재로 다룰 수 있게 됩니다., - 강의 소개 | 인프런 www.inflearn.com 여러개의 뷰를 add / remove 하여서 계속 뷰를 바꾸게 하기 위해 subView를 사용했다. 스토리보드에서 segue를 지정해준뒤 segue를 사용해서 자식 컨테이너 뷰 컨트롤러에 데이터를 넘겨주는 방식으로 하니 전해줄 데이터를 미리 세팅하고 나서 전달해줘야 하는데 segue를 스토리보드에서 지정해주니 view did load 이전에 호출되어 데이터가 제대로 넘어가지도 않고 pre..