kstenerud / iOS-Universal-Framework

An XCode project template to build universal frameworks (arm7, arm7s, and simulator) for iOS / iPhone.
2.94k stars 471 forks source link

Code change in frame framework not visible in unit test #90

Open agherardi opened 12 years ago

agherardi commented 12 years ago

Hello, I have created a Fake Framework with a unit test target. When I make a code change to a framework source file then re-run the unit test (Command+U), the change is not picked up by the test. For the test to see the code change, I need to do a clean (Command + Shift + K) first.

Any clues?

Thanks in advance.

kstenerud commented 12 years ago

Yes, that's a problem with fake frameworks that I've been trying to figure a way around, but have so far been unsuccessful.

Xcode just seems to ignore changes in a bundle target (which is basically what a fake framework target is).

agherardi commented 12 years ago

I think I found a workaround: Explicitly adding the framework to the list of libraries that the test target is linked against - i.e., Build Phases -> Link Binaries With Libraries -> + -> Others -> navigate to framework. To avoid hard-coding a path, I modified the .pbxproj to use $(BUILT_PRODUCTS_DIR).