Pages: [1] 2
Author Topic: Xcode 4.5 & iOS 6  (Read 3611 times)
kamend
Sofia, Bulgaria

Posts: 42

Gravatar


WWW
Xcode 4.5 & iOS 6
« on: September 20, 2012, 10:30:18 AM »

If somebody is having problems with XCode 4.5 and iOS6, just remove the armv7s architecture from your Project settings for now, in order to compile your project.



Logged
og

Posts: 21

Gravatar


Re: Xcode 4.5 & iOS 6
« Reply #1 on: September 20, 2012, 11:48:40 AM »

Hi,

Doesn't work for me, i still have this error :

Code:
ofiPhoneVideoPlayer.mm:44:20: No matching function for call to 'CVOpenGLESTextureCacheCreate'

I updated XCode to 4.5 with iOS 6 SDK and i thought it would keep iOS 5.1 SDK but it just deleted it ! Does someone have a link to download it ?
Logged
nils

Posts: 3

Gravatar


Re: Xcode 4.5 & iOS 6
« Reply #2 on: September 20, 2012, 08:23:41 PM »

Just do this:
    Go to Target -> Build Settings -> Architectures
    Choose "Other..."
    Add "armv7"
    Remove $(ARCHS_STANDARD_32_BIT)
    Done
    Clean & Build

as outlined here: http://stackoverflow.com/questions/12398201/moving-to-ios6-i-get-this-linker-error-with-almost-all-external-packages
Logged
paulf
london

Posts: 21

Gravatar


WWW
Re: Xcode 4.5 & iOS 6
« Reply #3 on: September 21, 2012, 01:13:57 PM »

Hello
I tried to do the change, but I still have the issue with ofiPhoneVideoPlayer.mm . Am I doing something wrong?


* Screen Shot 2012-09-21 at 13.07.23.png (375.31 KB, 1398x953 - viewed 92 times.)
Logged
og

Posts: 21

Gravatar


Re: Xcode 4.5 & iOS 6
« Reply #4 on: September 21, 2012, 04:15:39 PM »

Yes me too i still have this error...
Logged
justron

Posts: 20

Gravatar


Re: Xcode 4.5 & iOS 6
« Reply #5 on: September 22, 2012, 05:00:57 AM »

Since my project isn't using video playback, I just commented out those lines...I feel so dirty now.
Logged
tomschofield

Posts: 22

Gravatar


Re: Xcode 4.5 & iOS 6
« Reply #6 on: September 22, 2012, 12:08:47 PM »

It look like those lines are in an ifdef just for iPhone 5.
Logged
julapy
sydney

Posts: 375

Gravatar


WWW
Re: Xcode 4.5 & iOS 6
« Reply #7 on: September 25, 2012, 01:04:53 AM »

the ofiPhoneVideoPlayer issue is being fixed but for anyone that is desperate and needs it to be fixed right away, it can be done in the following way.

inside ofiPhoneVideoPlayer.mm
https://github.com/openframeworks/openFrameworks/blob/master/addons/ofxiPhone/src/video/ofiPhoneVideoPlayer.mm#L54-58

Code:
CVReturn err = CVOpenGLESTextureCacheCreate(kCFAllocatorDefault,
                                            NULL,
                                            (__bridge void *)ofxiPhoneGetGLView().context,
                                            NULL,
                                            &_videoTextureCache);

the new LLVM 4.1 compiler doesn't like the
Code:
(__bridge void *)
syntax.
you can remove it so the new code will look like,


Code:
CVReturn err = CVOpenGLESTextureCacheCreate(kCFAllocatorDefault,
                                            NULL,
                                            ofxiPhoneGetGLView().context,
                                            NULL,
                                            &_videoTextureCache);

this will fix the ofiPhoneVideoPlayer issue.
Logged

julapy
sydney

Posts: 375

Gravatar


WWW
Re: Xcode 4.5 & iOS 6
« Reply #8 on: September 26, 2012, 01:06:07 AM »

these issues will be fixed in the next OF release (0072).
for now, please use the fixes in this post until the next release is out.
thx.
Logged

tomorrowevening
Los Angeles

Posts: 21

Gravatar


WWW
Re: Xcode 4.5 & iOS 6
« Reply #9 on: September 26, 2012, 09:48:59 PM »

@nils
Were you able to build onto a device?

I was able to get the Simulators to compile by doing this: http://forum.openframeworks.cc/index.php/topic,10343.msg48586.html#msg48586
use iOS 5.1 as the Base SDK

The downside, however, is that I'm getting an error when building to a device.
Quote
(null): Linker command failed with exit code 1 (use -v to see invocation)

ld: file is universal (4 slices) but does not contain a(n) armv7s slice: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.1.sdk/usr/lib/crt1.3.1.o for architecture armv7s
clang: error: linker command failed with exit code 1 (use -v to see invocation)

When I attempt removing the architectures as you mentioned, I get this error when the app launches on the device:
Quote
Could not launch “Game”
failed to get the task for process 1726
error: failed to launch '/private/var/mobile/Applications/A/Game.app' -- failed to get the task for process 1786

Any thoughts?
Logged
julapy
sydney

Posts: 375

Gravatar


WWW
Re: Xcode 4.5 & iOS 6
« Reply #10 on: September 27, 2012, 12:55:54 AM »

the error suggests it could be something to do with the Entitlements.plist which is used when distributing an adhoc build.
http://stackoverflow.com/questions/1488600/iphone-debugging-how-to-resolve-failed-to-get-the-task-for-process

depends how you have your project setup...
but have you tried building a debug version to your device, not release build?
and just make sure you've added Entitlements.plist to CODE_SIGN_ENTITLEMENTS only for Release build.
Logged

tomorrowevening
Los Angeles

Posts: 21

Gravatar


WWW
Re: Xcode 4.5 & iOS 6
« Reply #11 on: September 27, 2012, 03:28:23 AM »

Switching provisioning profiles did the trick, but now I dunno how to send out the latest build to my team :P
Would updating the provisioning profile help?
Logged
wimvanhenden

Posts: 37

Gravatar


WWW
Re: Xcode 4.5 & iOS 6
« Reply #12 on: September 27, 2012, 09:23:57 AM »

Combining the solutions that Nils and Julapy gave, it worked for me.

Thanks guys
Logged
hokori
New Jersey

Posts: 2

Gravatar


WWW
Re: Xcode 4.5 & iOS 6
« Reply #13 on: October 03, 2012, 02:25:19 AM »

Just do this:
    Go to Target -> Build Settings -> Architectures
    Choose "Other..."
    Add "armv7"
    Remove $(ARCHS_STANDARD_32_BIT)
    Done
    Clean & Build

as outlined here: http://stackoverflow.com/questions/12398201/moving-to-ios6-i-get-this-linker-error-with-almost-all-external-packages


This fixed the issue for me. Thank you.
Logged
tomorrowevening
Los Angeles

Posts: 21

Gravatar


WWW
Re: Xcode 4.5 & iOS 6
« Reply #14 on: October 03, 2012, 03:33:27 AM »

I tried again @hokori and got it to work this time.
Setting "armv7" allows compiling onto a device and ad-hoc distribution! :) Thanks all
Logged
Pages: [1] 2
 
Jump to:  

Powered by SMF 1.1.15 | SMF © 2011, Simple Machines

viagra priser