This is driving me crazy. I've been working on a UIImage category, and I just updated to using Xcode 5.1. The problem is, the category isn't compiled after I make changes to the file and, heres the catch, that's only on 64 bit devices/simulators. I've tried deleting the app from the device, cleaning, cleaning the build folder, deleting the derived products folder, and all the previous at once. Nothing is working! Any suggestions would be greatly appreciated!
UPDATE 6/19:
So my workaround for this problem was to change the signature of the method. The method had been:
- (UIImage *)imageResizedTo:(CGSize)size scale:(CGFloat)scale And I changed it to:
- (UIImage *)imageWithSize:(CGSize)size scale:(CGFloat)scale I added NSLog statements to the method and they would print on 32bit devices and on the 64bit simulator, but not on 64bit devices. I added another category with the same signature and that worked just fine, but for whatever reason I could not get Xcode to recognize changes in the category in question, and only on this one method! Breakpoints didn't work inside the function, but they did in other methods in the same category.
I also looked at the build log and it says its compiling the category for armv7 and armv7s.
To sum up:
Things that didn't fix the problem:
- Removing the reference and re-adding it to the project.
- Changing the body of the method and re-building.
- Changing the valid architectures in project settings.
- Cleaning product/build folder/derived data.
- Deleting the app and rerunning on the device.
Things that did fix the problem:
- Changing the method signature.
- Copying the body of the method and putting it into the caller's body instead.
- Adding another category to the project with the same method signature and body.
I still really want to know what is going on with this. Mostly I just want to know why this would be happening, its very strange!
.mbut not the.h, it won't complain in any way in compile time in the other files (although it should complain in the.h). Have you tried removing the reference to the file in the project then re-adding the files to the project?