質問

I've got an iOS app that links to 15 Apple frameworks (including the ~3 basic ones every app uses). I've noticed that my app's load time, and time restoring from the background, is pretty high, though the executable is only 600kb. Could all these frameworks be the cause of the load time issue? And is it possible to, say, lazily-load frameworks as needed?

役に立ちましたか?

解決

Yes dynamically linked frameworks do affect load time, you can see this in instruments using the time profiler. You should see dyload running as your app launches and it will take time to load in each framework.

Even worse if have static code in something like +initialize this will run at load time too, further slowing your app.

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top