Good articles to my personal blog: technology cainrun. Making. IO / 15064011415…


Today, I wanted to test some third-party libraries. I planned to make a Demo, but I found that it couldn’t work and kept hanging for me. I was puzzled, so this article came into being.

For more information on how to package the Framework, check out the following two articles on How to package the Framework for iOS: Non-script version of the simulator and real machine static Framework composition tutorial, here is not much to explain.

Reprint statement: if you need to reprint this article, please contact the author, and indicate the source, and can not modify this article without authorization.


Xcode 9 drag-in file issue

I’ll post it to you. I’ll post it to you next. I’ll post it to you.

1

Then add -objc in Project->Build Settings->Other Linker Flags

2

And then run.

3

Found hanging and also reported an error -[UIView mas_makeConstraints:] unrecognized selector sent to instance

I would like to retrieve all the items I would like to link to. I would like to install -objc (Project->Build Phases->Compile Sources). I would like to retrieve all the items I would like to retrieve.

4

Since there is no link, add it manually:

5

6

7

Add complete, run again, oh ~~ run successfully:

8


Xcode 9.0 packaging Framework issues

To create a new project with Xcode 9.0, add the navigation file to it:

9

Change the lowest supported iOS version:

10

Then move the viewable.h header file, oh my god… There is no link to the.h file, so add it manually:

11

12

13

14

After adding it, run it and find it normal:

15

PS: Not only third-party libraries, sometimes even your own files, change folders will not link, so when moving files, remember to check if there is a link.


The project address

Project address: github.com/CainRun/iOS…


The last

WeChat

Alipay