Dyci--ios Dynamic Code Injection

Source: Internet
Author: User

Sometimes with xib, change the layout needs to re-run to see the effect, for more complex applications especially waste time, the following describes a tool dyci-do not need to re-run application, you can see the effect

Yci's website: https://github.com/DyCI/dyci-main

Can be downloaded to look at the source code and sample codes.

The installation method is as follows, open terminal to enter the following command

git clone https://github.com/DyCI/dyci-main.git
CD dyci-main/install/
./install.sh

1. If the installation succeeds, Xcode's product menu will have one more item at the bottom: Recompile and inject.

2, need to reference dyci.framework this library in the project document. You just need to add this library. No additional code is required.

3, the other link flag in the project needs to add-OBJC.

Official documentation mentions: Make sure, HAVE-OBJC flag in other Linker Flags setting

Because there is a category in the Dyci Library, you need to add this flag to make the category in the library effective.

4, after modifying the source program, you need to save first, and then press CTRL + X. If successful, the console will have output.

5, want to see the changes in the situation, need to re-enter the interface before you can.

Dyci--ios Dynamic Code Injection

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.