xcode4

Certificates, App ID and Provisioning Profile

与世无争的帅哥 提交于 2019-12-03 13:42:43
问题 For submitting an iPhone app to the App Store, we need to create Certificates, App ID and Provisioning Profile. I often get confused whith these things (even after reading the Apple documentation on http://developer.apple.com/library/ios/#documentation/ToolsLanguages/Conceptual/DevPortalGuide/Introduction/Introduction.html#//apple_ref/doc/uid/TP40011159-CH1-SW1) So could someone please explain me these things in simple terms. Can the same certificate be used for multiple apps (and both for

How to run OCUnit logic tests automatically before each build (run) of ios app in xcode 4?

痴心易碎 提交于 2019-12-03 13:31:50
问题 It seems, that I have everything setup right. When I run command-u (or pick product - test from menu) test run fine. Best practices should be, that test should run as often as possible, ideally during each build (understand during each run). How to force XCode 4 to do it? I have tried to: setup target dependency (put main app target to be dependent on test target) enable "test after build" in main app target build settings tick also test target in scheme editor for run main app scheme but

How to pass data back from detail view controller to uitableview?

筅森魡賤 提交于 2019-12-03 13:24:50
问题 In my app i making use of uitable to select category from my list. my task is,when ever user click or select a cell he should be able to view the selected cell detail in next view(detail view). and when he select the item in a detail view he should be able to move back in a table view and should be able to see the selected item in a rootivew controller. i am able to navigate properly from tableview to detail view,but i am not able to show the item which is selected in detail view to

How can I find calls to UIKit instances from a secondary thread?

故事扮演 提交于 2019-12-03 13:21:49
My app is crashing in iOS 5 because I have some code that is calling UIKit instances from a secondary thread. You know you have this problem when you see the following error: bool _WebTryThreadLock(bool), 0x811bf20: Multiple locks on web thread not allowed! Please file a bug. Crashing now… So my question is what are some ways that I can find the code that is calling the UIKit instances from a secondary thread? Here are some things I’ve tried already: Commented out blocks that could be violating the rule Added assert([NSThread isMainThread]) in places that might be processing in secondary

Xcode 4, Interface Builder and the Awareness of Classes in a Static Library

佐手、 提交于 2019-12-03 12:36:42
Although Xcode 4 is advertised being aware of cross-project classes of projects in a shared workspace, I didn't find this working and did some research about the problem. The common solution discussed in many threads around here is, to create a static library and link your projects against it. I therefore followed Jonah's guide ( http://blog.carbonfive.com/2011/04/04/using-open-source-static-libraries-in-xcode-4/ ) and created a static library to share frequently used subclasses of UIView with multiple projects. With some trial and error experience and troubleshooting, I found this solution

Why does Xcode keep recompiling my untouched project?

荒凉一梦 提交于 2019-12-03 12:25:49
问题 I have an Xcode 4 workspace with several projects. Everything builds perfectly and works as expected, only Xcode recompiles files too often. If I hit the Build button, wait for the compilation to succeed and then hit the button again, shouldn’t that be essentialy a no-op, since no files have changed? Because my Xcode recompiles a big part of the project again. Even when I build and then immediately hit the Play button, I have to stare at the building process again. Is that neccessary, is it

Xcode Version Editor - How to navigate through the changes?

▼魔方 西西 提交于 2019-12-03 12:03:59
In the built-in version editor view of Xcode 4 and 5, when it shows the differences between two revisions, how do you jump from one changes to another? I'm looking for something like the Cmd+Down/Cmd+Up shortcut keys of Araxis Merge. If you are already in the Version Editor: In the center gutter between the left and right sides, click a revision highlight (blue area) to select it Use the Up/Down arrow keys to navigate through the changes If you are NOT already in the Version Editor do this: Open the file with the changes you want to compare Select the version editor viewing mode Click the

Xcode 4: My iPhone projects have become Mac OS projects.. and I can't change this

蹲街弑〆低调 提交于 2019-12-03 11:53:46
I have two iOS projects that under Xcode 3 built properly and these iPhone been on sale in the app store for some time. After upgrading to Xcode 4, Xcode now thinks these are Mac OS projects! When I select Project Settings > Info, it actually says at the top "Mac OS Deployment Target" with a drop down allowing me to select 10.4, 10.5 or 10.6! These are not nor ever have been Mac OS projects. In my build settings, Xcode allows me to select 32 bit or 64 bit Intel architecture. not armv6 or armv7. You need to change your build settings. Fortunately, this is really easy to do. Start by clicking on

two projects in xcode4 workspaces (#import failure)

Deadly 提交于 2019-12-03 11:46:52
I'm really struggling to get this to work in xcode 4. I have one project that I will reuse in many applications (networking) so I create a workspace and add my two projects. So far so good.... This is where it fails.. #import "JSONRequest.h" For no apparent reason. It auto completes the file name of the header file. I thought this had something to do with the "scheme" (also new in xcode 4) so I've tried to add my networking target in the build phase. Changing order of them... set "Shared" under Manage schemes.. I've tried so many different combinations of the settings without any success.. And

Is there any way to change the date/time as seen on the iOS simulator (other than changing Mac settings)?

拈花ヽ惹草 提交于 2019-12-03 11:26:05
I need to do some testing that involves moving the "phone" backwards and forwards through several days. I'd like to do this on the simulator. Is there any available hack that allows the date as seen on the simulator to be changed, without having to change the Mac date? Looks like it's pretty tough... How about using xcodebuild to automate building and running the app from a script and using systemsetup -setdate <mm:dd.yy> to change date in between different runs? Then you wouldn't need to change anything in code. You can use method swizzling to replace the implementation of [NSDate date] at