xcode4.3

How to incorporate storyboards into a cocos2d 2.0 project?

浪尽此生 提交于 2019-11-29 10:43:11
问题 I have made a project in cocos2d 2.0 and would like to incorporate a main menu using storyboards. I have tried Jerrod Putnam's tutorial here on tinytimgames.com (I can't provide the link because new users are allowed only 2 links per post, but if you google "cocos2d storyboard" it is the first link) but it did not work for me. I followed it exactly (I think). I opened my cocos2d project and imported the files from his github, the CCViewController.m and .h and then created a new storyboard

Building an app bundle for a non-Cocoa C++ Mac Project

别来无恙 提交于 2019-11-29 10:15:23
问题 I am building a C++ OpenGL card game in Xcode 4.3.3, with the intention of running it on both 64-bit and 32-bit Macs, which is not my problem. My problem is that I have reached a point in the development of the program where I would like to test that it works on a different 32-bit Mac (mine is 64-bit) without having to install Xcode. This, obviously, requires me exporting it as an .app. I can find and run the exported Unix Executable File from my project, after some cd'ing, through Terminal,

An error occurred uploading to the iTunes store

生来就可爱ヽ(ⅴ<●) 提交于 2019-11-29 09:44:39
问题 Using Xcode 4.3.2. Since yesterday, I can't upload to ITunes Store. I can't find any reasons. Archive -> Validate... no problem. But, it is occurred error in distribute. My app is using Push. My Xcode version is 4.3.2. What do I do to escape this state? Please help me... and thank you. 回答1: I had the similar issue..which i was able to fix using the solution mentioned here - An error occurred uploading to the iTunes Store - Please upgrade Java for quick reference I am adding the solution here

Why do we have to set __block variable to nil?

旧时模样 提交于 2019-11-29 09:42:21
问题 From the Transitioning to ARC Release Notes Use Lifetime Qualifiers to Avoid Strong Reference Cycles You can use lifetime qualifiers to avoid strong reference cycles. For example, typically if you have a graph of objects arranged in a parent-child hierarchy and parents need to refer to their children and vice versa, then you make the parent-to-child relationship strong and the child-to-parent relationship weak. Other situations may be more subtle, particularly when they involve block objects.

command-line library build fails with linker error

不打扰是莪最后的温柔 提交于 2019-11-29 07:28:55
I am getting a library not found error building GraphViz current release (June 7 2012) with Xcode 4.3 using a script. I may have made mistakes updating build scripts from other people's successful recipes for the new location of Xcode4.3 and the developer tools in the Applications folder. ld: library not found for -lcrt1.10.6.o (doing this from memory so exact number on the CRT lib may be wrong) Am also a little lost also how I would incorporate this into an Xcode build in the IDE. I am a very experienced programmer but having trouble finding my way around Xcode 4 at times. (Decades of Visual

Xcode 4.3.2 and 100% CPU constantly in the idle time

纵饮孤独 提交于 2019-11-29 06:15:35
My Xcode started to behave very heavily from yesterday when working on medium size project (around 200 source files). Project compiles correctly and runs in both simulator and device. I do not use any 3rd party libraries, except few widely used includes (like JSON or facebook ios sdk). It constantly uses CPU(s) at full speed, even if it is in idle state (no indexing, no compiling, no editing). The usage of RAM is relatively normal (300-50MB). My machine uses: Core 2 Duo 3.04Ghz CPU, 8GB of RAM and Vertex OCZ 3 SSD drive. I have tried every suggested solution found at stackoverflow: Cleaned

lldb fails to print variable values with “error: reference to 'id' is ambiguous”

女生的网名这么多〃 提交于 2019-11-28 21:02:20
Since I updated to xcode 4.3 and let it switch my debugger over to lldb, any request to print a member variable fails with this error message: (lldb) print request error: error: reference to 'id' is ambiguous note: candidate found by name lookup is 'id' note: candidate found by name lookup is 'id' error: 1 errors parsing expression 'self' is ok: (lldb) print self (LoginViewController *) $6 = 0x1cd54d50 And other forms of printing the member variable also fail: (lldb) print self.request error: property 'request' not found on object of type 'LoginViewController *'; did you mean to access ivar

Custom Fonts Xcode 4.3

£可爱£侵袭症+ 提交于 2019-11-28 19:56:44
I'm trying to use this font in my project but it won't work. I added the .ttf file in my project and added its name in the MyApp-Info.plist under the key: Fonts provided by application. Then I tried this: [_titleLabel setFont:[UIFont fontWithName:@"chalkboard" size:_titleLabel.font.pointSize]]; I also checked if the name of the font is really "chalkboard" and it is. The displayed font is still Helvetica, only smaller. Where could the problem be? Thanks in advance. You need to use font name, not filename. Font name is inside the ttf file. You can find font names for iOS here: http://iosfonts

sudo: port: command not found

别等时光非礼了梦想. 提交于 2019-11-28 15:28:52
问题 I recently uninstalled Xcode 4.2 and re-installed Xcode 4.3.1. Command Line Tools are installed. I then installed MacPort using “dmg” disk images for Lion from macports.org. Since, I was getting sudo: port: command not found after every use of port, I followed this and this post to create a .bash_profile file(wasn't present earlier) and then put in it the following but to no avail. export PATH=$PATH:/opt/local/bin export MANPATH=$MANPATH:/opt/local/share/man export INFOPATH=$INFOPATH:/opt

“The application does not have a valid signature” Xcode 4.3

怎甘沉沦 提交于 2019-11-28 10:04:41
I'm getting the weirdest error today. "The application does not have a valid signature" I get this error when I try to run the application from Xcode 4.3 on my device. Also when I archive it shows it as a generic archive instead of a real app. Of course I deleted all of the invalid profiles, cleaned my derived data, cleaned my target, and restarted. No luck. EDIT: Turns out that I had a folder reference in my app. I removed all of the references to the folders and made them groups and it worked! Just throwing this out there, might help someone in the future (and also would be good for my