Brother alliance, as an iOS development white, today is to open the bottom door of a.

Ready to start

Low-level compilation debugging, I feel is a matter of patience. There were a lot of problems to solve, but when the code started running, it was worth it.

  • 1, first you have to have a Mac ^_^
  • 2. MAC OS 10.15.6(current version of my computer)
  • 3, xcode 11.6
  • 4, objc4-787.1

To share a download Source address: Apple Source

Begin to compile

In the compilation process will encounter many problems, need to be patient. Step by step.

  • 1.问题1: “unable to find SDK ‘macosx.intermal'”

! Solutions:

  • 2. Fault 2: The file is missing

In my opinion, this is the most time-consuming problem, a file to find, a change. (But I will upload a zip package and take care of the missing files.)

Solutions:Apple SourceYou can look in here. There are other missing files, and you can reference them all in one folder.

I don’t want to go into the quote, everybody can

  • 3. Use of undeclared identifier ‘CRGetCrashLogMessage’

Target -> Build Settings -> Preprocessor Macros Add LIBC_NO_LIBCRASHREPORTERCLIENT

  • 4. Compilation errors are reported

Solutions:

  • 5. Compilation error occurs

  • 6. Compilation error occurs

Solutions:Change ‘macosx.internal’ to ‘macosx’

Then. Compiling, finally passed. Is really not easy (now I am inside cattle o(╥﹏╥)o)

Commissioning stage

Everything is ready. Well, I guess we can wait

  • 1. Create a target

  • 2. Association

And that’s it… A great wave of… Proof:

Note: Some students found that the breakpoint can not go when debugging

  • I explain a wave:

Just put main first!!

Location: link: pan.baidu.com/s/1sj3SfJYL… Password: pl0o