开发者

Temporarily restrict certain resources from build inclusion in Xcode?

开发者 https://www.devze.com 2022-12-20 23:52 出处:网络
Is there a way to temporarily restrict which resources are included in the build of an iPhone app (via Xcode)?

Is there a way to temporarily restrict which resources are included in the build of an iPhone app (via Xcode)?

I am testing a use case in my app and want to minimize the installation time on my device. I would like to do this by reducing the resources to only those needed by this use case... 开发者_如何学编程i.e. there are over 70MB of .wav and .png files that I do not need to copy over.

I am looking for something more elegant than moving the out of the project into a separate directory on the file system.

Thanks in advance!


Try this: duplicate your target in XCode (on the left-hand side of the XCode project window, open "Targets", click on your application target, then choose "duplicate" from the Edit menu).

In the duplicated target, go into the "Copy Bundle Resources" build phase and remove the files you don't want. Switch your "Active Target" (using the menu at the top of the project window) and build.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号