I'm working on the future version of my app and want to integrate some iOs6 new classes like UIRefreshControl. I know I can't submit my app with xcode 4.5 yet. So I go back to an xcode < 4.5 and build, but I've got errors because it doesn't know that class.
How can I put conditions in my code in order to by pass building errors and get my code well conditionned for iOs < 6 and iOs >= 6.
I tried several things like :
#if __IPHONE_OS_VERSION_MAX_ALLOWED >= __IPHONE_6_0
or
#ifdef _USE_OS_6_OR_LATER
But they don't work... I still get errors.
you can submit with xcode 4.5 as of yesterday. Gold Master Version is able to submit an app
Related
I'm having a very interesting issue with OpenCV and different deployment targets, and I'm running out of ideas of what to try.
Setup
iPhone 6S
iOS Version 10.1.1
OpenCV framework 3.1.0.1
XCode 8.1
Problem
When I compile my code with my Deployment Target(in Xcode) set to 8.0, my code works perfectly.
However, when I compile my code with Deployment Target set to 9.0 or 10.0, my code runs but the values I receive from matchShapes is completely different.
Everything seems to be running fine - I do some filtering before matchShapes, and the output from all the filters are perfect. It seems like it's just specifically matchShapes that's the issue.
There are no additional warnings at buildtime when I switch deployment targets.
Attempted Solutions
I updated everything and made sure it's at the latest version
I tried downloading openCV.framework and using the OpenCV pod
Code
This is the line of code of interest:
double matchPercentage = cv::matchShapes(targetShape.contour, contours[i], CV_CONTOURS_MATCH_I3, 0);
Question For You
Any suggestions or ideas for what might cause this? Happy to run any sort of additional diagnostics or testing and report back.
Thanks for your time
I have an existing app (XCode 5.1.1 and iOS 7) that uses AVFoundation.framework. I do NOT have a #import for AVFoundation.framework, and the app builds and runs correctly.
I started another new project (XCode 6.1, iOS 8.1) using basic parts of the above app; I have everything set as in the above working app, but the new one will not find the frameworks as needed.
Anybody have any ideas why this is not working?
I figured it out... you must NOT have any value in both Framework Search paths and Library Search paths. It now works.
I've recently discovered Cocos2D V3 with Chipmunk physics engine built right into it. There's only one template to create a project from. When I run the sample game on my iPod touch with iOS 6.1 it works as expected but when I run it on an iOS 7.1 device, like 5S or 5, I get EXC_BAD_ACCESS error when I click the [Newton physics] button. There's nothing else. It just shows EXC_BAD_ACCESS before the onNewtonClicked method, so it's not inside the method, but outside. Has someone else experienced this?
This is a 32/64 bit compilation problem from Cocos2d.
You can fix this by updating to the latest RC 0.4 version.
Please check the instructions here to see how to do that :
xCode 5.1 build crashes - SpriteBuilder
I recently updated xCode to 5.1. All of a sudden my (cocos2d) builds keep on crashing when publishing to my iPhone 5s (iOS 7.1). It works fine in the simulator (iOS 7.1).
I got a screenshot here: http://puu.sh/7rB8S.png
Also I got a bunch of warnings since I updated xCode to 5.1.
Replace above with: "7rBfp.png" (due to lack of reputation...)
If you are willing to reproduce the problem, I followed this tutorial: https://www.makegameswith.us/tutorials/getting-started-with-spritebuilder/menus/
Once I added the MainScene background (and the button + methods) I was not able to build on my iPhone anymore.
Am I missing something? Before I updated xCode and my phone today everything worked flawlessly.
To update Cocos2D, download the latest version ( https://s3.amazonaws.com/spritebuilder/cocos2d-iphone-3.0.0.rc.4.zip24 ), unzip the file and rename it to cocos2d-iphone and replace the version in your current project. It's in Source/libs/cocos2d-iphone.
Credits to Vic at the SpriteBuilder forums for this answer.
Im getting 2 errors/warnings when im trying to build/run my app in the simulator, the error is in the SDK i guess.
File: CLScoreServerPost.m
'uniqueIdentifier' is deprecated (declared at /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIDevice.h:64)
and this one in CLScoreServerRequest.m
'uniqueIdentifier' is deprecated (declared at /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIDevice.h:64)
I've been trying to reinstall the templates ect ect ect and nothing works.
Some one know the problem ?
Thanks
It says it right there:
uniqueIdentifier is deprecated
And so you should search for it on Google to come up with the related Stackoverflow question.
Deprecated means it should no longer be used, and it may be flagged as an error if you do use it depending on certain circumstances. My guess is that if your deployment target is set to iOS 5.0 and since iOS 5.0 deprecated that method, it's going to be an error when building an app that targets iOS 5. It's probably just a warning if you target iOS 4.x or earlier.
If you are calling that method, then don't. If that call is in a third party library, then contact the author of that library.
Try rebooting your iPhone and computer. Then, after you run your app from Xcode and as it was running on your phone, stop the task. Then, re-open the app through the phone without Xcode running any task.
I did this and did not receive any further errors, and was able to open/close from the active app area (double-tap home button), and I was able to re-launch it without any issues.
Hopefully this helps.
(I think this is in response to the proper problem)