屏幕快照

简介

InjectionIII adds a limited form of “Hot Reload” capability to your iOS, tvOS and macOS projects written in Swift or Objective-C. This allows you to change the implementations of methods in classes without having to restart your app.

To get started, install the app to /Applications and run it then, download the example project http://johnholdsworth.com/GettingStarted.zip and build and run it in Xcode. You’ll be promoted to select the directory containing the project file and sources by the menubar app to give it access to which files have changed. Once injection has connected, if you save a file, it will be recompiled and injected into the running app, the new implementations taking place of the old. In the GettingStarted iOS app, if you edit the file DetailViewController.swift to change the string appended after the detail.description in function configureView() then save the file, you can see it take effect straight away.

InjectionIII requires Xcode version 9.3/4 or 10 to work, installed at the standard location in /Applications. You'll need to turn entitlements off to be able to use injection on a macOS application. Add one of the following to your app’s startup to connect to InjectionIII:

Xcode 10.2 and later:

#if DEBUG
Bundle(path: "/Applications/InjectionIII.app/Contents/Resources/iOSInjection.bundle")?.load()
//for tvOS:
Bundle(path: "/Applications/InjectionIII.app/Contents/Resources/tvOSInjection.bundle")?.load()
//Or for macOS:
Bundle(path: "/Applications/InjectionIII.app/Contents/Resources/macOSInjection.bundle")?.load()
#endif

Xcode 10.1:

#if DEBUG
Bundle(path: "/Applications/InjectionIII.app/Contents/Resources/iOSInjection10.bundle")?.load()
//for tvOS:
Bundle(path: "/Applications/InjectionIII.app/Contents/Resources/tvOSInjection10.bundle")?.load()
//Or for macOS:
Bundle(path: "/Applications/InjectionIII.app/Contents/Resources/macOSInjection10.bundle")?.load()
#endif

It’s limited in that it can only reload implementations of non-final, non-generic classes and not structs but in general it works quite well once you’re up an running.

新内容

版本 1.5.1

- Adds more descriptive and helpful error messages
- Fixes injecting Swift classes with the latest version of Xcode

评分及评论

4.8(满分 5 分)
46 个评分

46 个评分

君子爱成人之美

每次评价都得起个名字

还好之前免费的时候买的,现在好像要收钱了?

开发人员回复

Don't really know what that means but it must be good! :)
We really appreciate the 5-star review, thanks!
/C

NSFish_

Best tool for iOS deveopment

Follow the project on Github from the good old Xcode plugin days, thanks so much for all the efforts you put into.
Time is life, you guys surely saved thousands of lives. 😘

开发人员回复

Holy Mackerel Batman! That​ is by far the most beautiful sentiment we have ever heard! Thank you NSFish_ for your support, remember to stay hungry and stay foolish! /C

博哥小时候很厉害

必须五星

提升了成吨的效率

开发人员回复

Thanks for the review and that you find it useful, we do too :)
We are looking into improving the experience further in future versions so stay tuned for even more productivity boosting.

/C

信息

销售商
Christoffer Winterkvist
大小
7.1 MB
兼容性

macOS 10.12 或更高版本,64 位处理器

语言

英文

年龄分级
限4岁以上
Copyright
© 2018- John Holdsworth
价格
免费

支持

  • 家人共享

    启用“家人共享”后,此 App 最多可供 6 名家庭成员使用。