Showing posts with label Xcode 4. Show all posts
Showing posts with label Xcode 4. Show all posts

Monday, July 25, 2011

10.7 and iOS Production Environment

Well over the weekend I made the switch to 10.7 Lion. I performed a clean install, mostly because my 10.6 had more crap installed than I care to admit. About the only thing I may miss is MacPorts / ImageMagik.

I checked several blogs and noticed the trend was posting how to make Lion like 10.6 SL.... ????

Yeah, guess we're a bit afraid of change, aren't we.. ?

So far I'm all set after just a couple of days; YES I can scroll backwards, er I mean natural scrolling ;-)

Just one thing that is going to give me Carpal Tunnel and that is with my MagicPad I used to be able to tap-tap and drag to select text or drag an item in Finder. Yeah, that's gone, so now about all I can do as a replacement is to enable three-finger drag... um yeah I'm not sure how long before that feels natural... I look like someone with, oops sorry, need to be politcally correct. We'll leave it at it sure feels awkward.

My iMac is now one revision old, a 3.06GHz 21.5" model and it wails with 10.7 installed but I'm a firm believer in clean installs. :-)

So I've been mostly working today and I'm nearly used to the new scrolling method and am in the process of build and testing with Xcode v4.1 (love the new analyzer!). I hope to submit YAU (yet another update) after v1.2.2 gets approved (WARP gce) so I'll post any problems. Just remember to deselect the System Tools on your Beta Xcode installs and you should be golden. Oh yeah... made a trip to Terminal to "mkdir /Beta" since the Xcode installer wouldn't let me create a new root folder, eh?

Tuesday, July 5, 2011

[iOS5] WiFi Sync Notice

Quick troubleshooting tip

Scenario: You have the iTunes beta install and are testing iOS 5, so you think "Hey let's try this WiFi sync out". Seems to work okay, cool. Except now your Xcode 4.0.2 goes bullsh!t and freezes up every three minutes!

Solution: Disable WiFi sync on ALL iOS 5 devices. :-(

Detail: With Xcode 4.0.2 all of a sudden my iOS 5 iPhone 4 would show up in organizer. Erm, yeah that's never good, it doesn't know what to do with a WiFi connection!

"Goodbye beach ball"
:-)

Sunday, June 12, 2011

[iOS5] Caution!

I had Xcode 4.0.2 installed in /Developer and Xcode 4.2 (beta) installed in /Beta. I could work and run both just fine.

I had to submit an update to an existing app (WARP gce was approved!). When I built to test the app on my device Xcode 4.0.2 gave me a signing error, something about the code_wrapper. So I tried just re-installing Xcode 4.0.2 and the error was fixed (most likely because Xcode 4.0.2 wrote-over whatever tools the beta installed). I did not try and run the beta, as I was still focused on getting the update submitted. So, archived and then submitted to the store and Xcode reported a confirmation but a few minutes later the App Store rejected the binary. Here is the verbiage:
Invalid Signature - Make sure you have signed your application with a distribution certificate, not an ad hoc certificate or a development certificate. Verify that the code signing settings in Xcode are correct at the target level (which override any values at the project level). Additionally, make sure the bundle you are uploading was built using a Release target in Xcode, not a Simulator target. If you are certain your code signing settings are correct, choose "Clean All" in Xcode, delete the "build" directory in the Finder, and rebuild your release target.

In addition if you thought you'd like to try and check out iCloud and updated your profiles, you cannot submit to the store. Remove the enable for iCloud setting and update your profiles to fix. Here is the error I got back for that error:
Invalid Code Signing Entitlements - Your application bundle's signature contains ubiquity code signing entitlements that are not supported.
Specifically, value "( xxxxxxxxxx.* )" for key "com.apple.developer.ubiquity-container-identifiers" in is not supported.

So in summary: you can run both copies of Xcode on your Mac but if you need to submit to the store you may need to remove the beta and reinstall 4.0.2.

If I find anything more about this I will update this post. There are a few discussions on the Dev forums I'm watching and participating in.
:-)

Friday, June 3, 2011

Speed up Xcode 4

Love it or hate it... Xcode 4 is here to stay...

Browsing the Apple forums I happened upon a post with the most excellent comment from crisB regarding speeding up Xcode 4.

My Xcode 4 was PAINFULLY slow...

Basically you need to remove the workspace file from the contents of your project.

Here's a before and after shot. My project's file was 50MB's and my Xcode 4 was running EXTREMELY slooooooow; I would have the spinning beach ball for several MINUTES!!





So this Automator workflow / droplet basically deletes the "project.xcworkspace" from the file you select or drop.

DOWNLOAD HERE

Enjoy...

PS What the heck happened to May!!!

Saturday, March 12, 2011

[Xcode 4] - Where is my build?

The second in a series of (hopefully) helpful Xcode 4 posts.

I knew right where my "Build" folder was in Xcode 3 and my "Release" or "AppStore" or "Debug" builds were right in there, plain and simple. Now with Xcode 4:


Where the frack are they in Xcode 4???

Fear not, Xcode 4 (default settings) uses a common build or derived data folder.
(1000 words)


I put a shortcut to this folder in my "DevWork" folder for quick and easy access.



That's for this post, by all means if you find something interesting about Xcode 4 or have something you'd like me to cover, just send me an email of the @gmail.com type to meachware or post a comment on one of the Xcode 4 posts.

Happy coding!

Wednesday, March 9, 2011

Get Ready for Xcode 4 and Get Git!

So I'm stepping up and into the 20th(???) century.. :-D yes, I'm finally using an SCM! W00T!

I can't show any Xcode 4 screenshots (yet) since it is still under NDA but I can say that it is flat out super easy to use Git within Xcode 4. I also won't embarrass myself and tell you how I had been managing my projects before Git.

Here's a very quick overview:

1. Download, install and configure Git.
2. Open up Terminal and type "cd " <- include space, now drag your project folder into the Terminal window and press the {Enter} key.
3. Type "git init" and press the {Enter} key.
4. Open your project with Xcode 4.
5. Choose File -> Source Control -> Commit (shortcut: press {Shift}+{CMD}+c) to open the Commit window.
6. Select all your files and be a good Git user and enter "Initial commit" in the comments.
7. Click the Commit button and wait for it to complete.

That's it... you just created your first Git managed project. As you make modifications to your project you'll see a handy "M" on all files that have been modified since your last commit.

Xcode 4 & Xcode 3 Work Fine Together

Edit: Very timely! didn't know Xcode 4 would be released today!

DO NOT INSTALL XCODE 4 in the default location!!!
If you do/did you will/have replaced your Xcode 3 installation.

Edit: sorry for shouting...

Wait, what? you already installed it and now you lost Xcode 3... ARG the humanity!!!! Okay all is not lost, take a quick look at this older post about selecting a different folder for Xcode to install into and run the Xcode installers a second time. I would remove the old folders first.

I am using the following folders:
Xcode 3 (including the new iOS 4.3 GM SDK) installed into -> /Xcode3 (was /Developer) (1)
Xcode 4 (includes the GM 2) installed into -> /Developer (was /Xcode4) (1)

(1) Update: I just switched today with the final releases of both Xcode 3.2.6 and Xcode 4. I want Xcode 4 to be the default so I'm installing it into /Developer. You can install whichever way you want, heck even in /Xcode4 and /Xcode3, that may be the easiest way to keep them separate. Just know that "/Developer" will always be set as the default folder, regardless of the Xcode version.

Install the Xcode's in whatever order you want. To set the "default" version (the one that opens when you double-click a project file), choose get info on a project file from Finder and then browse to and select the Xcode app you want to use and select the Always use this application" checkbox.


The /Xcode4 folder was leftover from the beta installs but there is no reason it won't run just fine in that folder. This allows you to, very quickly create say a nice shiny new cocos2d 0.99.5 or heck even a beta 1.0.0 app with Xcode 3 using the cocos2d templates (that still work in Xcode 3) and then open the project in Xcode 4.

Sweeeeet.... :-]