Road ios learning: Xcode + swift + package ipa step in a pit recorded

Keke, as the company's Android development (and java interface development, and software testing, and operation and maintenance ......) due to the development of small companies ios partner away from me, ios app is a problem in urgent need of treatment. So leading up to me to deal with it. Is repackaged with a certificate of thing, everyone felt Bel simple (including me), so I used the company's macmini win with HKC display with keyboard, with a week's time (manual smile bye), and finally packed up.

One, first of all talk about the Xcode package, provided that the procedural bulid no problem,

1. Click Xcode-> Product-> Archive can, as shown:

 

 

2, bottom panel interface, select the files after successful appears, click the button shown, export ipa

 

 

 

 

Stepped pit: Packing endless Tip: macos want to use the system keychain

 

 

 

 

Follow the prompts to fool after after installation, but still need to enter a user name and password so many times (at least not endless ......) can be successfully exported ipa

Second, talk about version incompatibility (former developer with ios version is Xcode10 swift3, I was Xcode11 swift4)

     The beginning is a variety of problems, error, not compile, something you can modify follow the prompts to click fix, but some error for this entry are not even people on the tricky for me, there is an exclamation point, an error can not read this time most of the language is not compatible with the swift, the solution is being given to a method or class, copy and paste it into Baidu, searches out the latest to use, on their own perception, and it wants to change according to the example: as follows Figure given:

 

 

 

? ? ? ? ? This project before it can run colleague is no problem, the problem is certainly the grammar, usage Baidu, UIColor

 

 

The result is colorLiteralred has been changed to red, well, then changed, compiled by! The idea is to record a solution to the problem

Given "Index out of range" Third, the compilation is complete, the real machine operation relates to the accessing entity based YYModel

      Before the project must be run successfully ever reported this error to even think about fixing a bug in the code, the code is not bug, then find a swift language problems, swift4 in front of all entities in the class definition to add @objc (by pro-test), as shown:

 

 

 

Fourth, talk about the experience

      实际上遇见的问题不止这些,有得我忘记了(哎,没有截图记录一下问题解决方法是我的不是),我刚开始研究的时候实在是烦躁,怎么都捉摸不透、甚至想过放弃,老子不干了!但是没钱使我冷静了下来,事情总会解决的,耐心就是了,说不定那天就开窍了呢~耐心最重要。解决问题后再回想当时的烦躁,觉得自己好好笑,这个博客就当我自己发发牢骚,下班,祝大家国庆小长假快乐~祝祖国繁荣昌盛~愿世界和平!

 

Guess you like

Origin www.cnblogs.com/yunfang/p/11613499.html
Recommended