Reprint please indicate the source Why write this, because theos created dylib need to change the path inside dylib, very troublesome
I have read many articles and experimented many times before I succeeded. I summed up the simpler way. The pro-test is available, and the dynamic injection is available.
1. Create a new project, select OS X -> Framework&Library-> Library 2. TARGETS -> Build Settings -> Installation Directory Modified to @executable_path/ 3.TARGETS -> Build Settings -> Base SDK changed to Latest iOS or iOS X.X 4.PROJECT->Info-> iOS Deployment Target Select version support 5.Project->Build Settings ->Base SDK changed to Latest iOS or iOS X.X 6. Select a certificate 7. Select the device, run Copy code