I have a workspace with an app and a static lib. The lib is used in the project.
When I modify the lib and build the app, the lib is well rebuilt: cool! But if I have not modified the app, the newly built lib is not packaged within the app, it lets the old one. To have the newly built lib, I have to modify the app (I add a space and delete it)…
I have tried both ways: letting Xcode managing dependencies automatically, and explicitly added the lib in the app build phase.
So if someone has an idea!
Thanks in advance.
I dont fully get it I am afraid… you hit ‘archive’ and the .a file isn’t included together with the .app inside the archive?
to get the .a file included in the archive, set:
go to
build settings > your static lib > skip installand set it toNOafter the comments:
you HAVE to touch the app to get it copied to the simulator again.. mock editing a file should help
you can maybe automate this too:
add a scripting phase to the lib’s build phases and have it run
touch %PATH_TO_AN_M_FILE_FROM_THE_APP%