How to manually add Lookin of iOS Framework?

How to manually add Lookin of iOS Framework?

Download Lookin, LookinServer.framework file will appear after installation is complete, move the file to the root directory of your iOS projects, namely the "xxx.xcodeproj" in the same directory.

29115029_d0a3baae2e.jpeg

Open your iOS project, follow the steps shown in the figure below, check to be used Lookin of iOS Target, navigate to the Build Settings in the Framework Search Paths, and then add $ (SRCROOT) in the Debug option in

* If you have not copied in the previous step LookinServer.framework to the project root directory, but copied to other places (such as copying files to the FavoriteFrameworks project root folder), then here it is imperative "$ (SRCROOT)" change to "$ (SRCROOT) / FavoriteFrameworks"

29115047_45683542ce.jpeg

According to the following steps shown in FIG, navigate to the Build Settings in the Other Linker Flags, and then add -ObjC -weak_framework LookinServer option in the Debug

29115059_f4746e3c26.jpeg

According to the following steps shown in FIG, navigate to the Build Settings in the Runpath Search Paths, confirmed that there had been added a @ executable_path / Frameworks

If you do not add too, manually add "$ (inherited) @ executable_path / Frameworks" (without the quotes)

29115110_4da1b2f84b.jpeg

Follow the steps shown in the figure below, navigate to the Build Phases, click the plus sign top left corner, select New Run Script Phase create a new script.

The new script is renamed to Integrate Lookin, and then copy the contents of this script as the content.

29115134_1f914fafaf.jpeg

Run with Release mode at your iOS App, and then open Lookin verify this model does not view your App.

Debug mode switch back to your App, now you should have a normal use Lookin.


Guess you like

Origin blog.51cto.com/14370425/2424587