xcode4

Detect UI actions outside of main thread

放肆的年华 提交于 2020-06-09 08:25:06
问题 Note: This question is related to Warn on calls to UIKit from background threads but does not give an answer on two of the approaches below. I have a problem where the app screen blinks rapidly. I already had that problem in the past and it is due to updating the UI elements outside the main thread. Therefore I've put the following code in many places: assertMainThread(); which is: #define assertMainThread() NSAssert([NSThread isMainThread],@"Method called using a thread other than main!") Of

route-me won't compile in xCode 4

雨燕双飞 提交于 2020-02-05 05:17:05
问题 I'm trying to get route-me offline maps to compile in xCode 4. They were fine in xCode 3. I believe my issue is with architecture settings. Looking at the following post, it looks like I should change proj4 to be armv6 only and leave the main project and mapview at standard (v6 & v7). However, I still get the following errors: Undefined symbols for architecture armv6: "_OBJC_CLASS_$_RMMarker", referenced from: objc-class-ref in OSMapViewController.o "_OBJC_CLASS_$_RMDBMapSource", referenced

My app is running on the simulator but not on the device

a 夏天 提交于 2020-02-05 03:25:11
问题 I have a problem with that error : Undefined symbols for architecture i386: When I build and go, it run successfully on the simulator but not on the device, I try a simple new project, I try to run it on the device, it was ok, but this project didn't run because of that error, the full stack error is this : Ld "/Users/imac/Library/Developer/Xcode/DerivedData/TopStation-cjwcuxabgkltqvdslykmwkeqvsee/Build/Products/Debug-iphonesimulator/RM Unit Tests.app/RM Unit Tests" normal i386 cd /Users/imac

The version of iOS on “KashodhaniPhone” does not match any of the versions of iOS supported for development with this installation of the iOS SDK.

懵懂的女人 提交于 2020-02-05 02:41:29
问题 I complete all step to provisional but i faced " Xcode cannot run using the selected device ." and below of this line is " No provisioned iOS devices are available with a compatible iOS version. Connect an iOS device with a recent enough version of iOS to run your application or choose an iOS simulator as the destination ." when i am going to organizer its show the Yellow status please some one help me he version of iOS on “KashodhaniPhone” does not match any of the versions of iOS supported

Xcode4 Workspace with Static library project & application project

妖精的绣舞 提交于 2020-02-03 10:57:22
问题 I'm working on a project where I'm going to eventually have a library of code that will be used by multiple applications. In reading though the documentation it sounded like creating an XCode4 workspace and 2 projects (1 library, and 1 application) was the way to go. I did this and everything appeared to be working just great. However, today I did a bunch of work on my library project and when I run my application to test my library changes it appears to always be including an older compiled

Xcode4 Workspace with Static library project & application project

北城余情 提交于 2020-02-03 10:54:03
问题 I'm working on a project where I'm going to eventually have a library of code that will be used by multiple applications. In reading though the documentation it sounded like creating an XCode4 workspace and 2 projects (1 library, and 1 application) was the way to go. I did this and everything appeared to be working just great. However, today I did a bunch of work on my library project and when I run my application to test my library changes it appears to always be including an older compiled

XCode 4.2 clang seg fault

余生颓废 提交于 2020-02-03 09:06:31
问题 Just upgraded to Lion and xcode 4.2. Now when I recompile my program I getting these errors: /Users/XXX/Code/iPhone/XXX/Code/Scenes/GameScene.mm:1806:35: current parser token ';' /Users/XXX/Code/iPhone/XXX/Code/Scenes/GameScene.mm:1762:1: parsing Objective-C method 'updateWithTouchLocationMoved:withEvent:view:' /Users/XXX/Code/iPhone/XXX/Code/Scenes/GameScene.mm:1762:1: in compound statement ('{}') /Users/XXX/Code/iPhone/XXX/Code/Scenes/GameScene.mm:1771:2: in compound statement ('{}') /Users

XCode 4.2 clang seg fault

亡梦爱人 提交于 2020-02-03 09:06:09
问题 Just upgraded to Lion and xcode 4.2. Now when I recompile my program I getting these errors: /Users/XXX/Code/iPhone/XXX/Code/Scenes/GameScene.mm:1806:35: current parser token ';' /Users/XXX/Code/iPhone/XXX/Code/Scenes/GameScene.mm:1762:1: parsing Objective-C method 'updateWithTouchLocationMoved:withEvent:view:' /Users/XXX/Code/iPhone/XXX/Code/Scenes/GameScene.mm:1762:1: in compound statement ('{}') /Users/XXX/Code/iPhone/XXX/Code/Scenes/GameScene.mm:1771:2: in compound statement ('{}') /Users

StoryBoard 2 navigation controller pointing same View

这一生的挚爱 提交于 2020-02-02 10:21:01
问题 Does anyone know why this does not work? With this, just one tab bar load the view, the other make black screen. I Have tried without Navigation Controller, and Tab bar is correct and the other doesn't show the tabBar item in running mode. 回答1: My answer for this problem if anyone is interested. Add two views that will launch the view we are interested. Same file for this 2 views : @interface PushToAgenceViewController : UIViewController @end -(void) viewWillAppear:(BOOL)animated { [self

StoryBoard 2 navigation controller pointing same View

半腔热情 提交于 2020-02-02 10:19:24
问题 Does anyone know why this does not work? With this, just one tab bar load the view, the other make black screen. I Have tried without Navigation Controller, and Tab bar is correct and the other doesn't show the tabBar item in running mode. 回答1: My answer for this problem if anyone is interested. Add two views that will launch the view we are interested. Same file for this 2 views : @interface PushToAgenceViewController : UIViewController @end -(void) viewWillAppear:(BOOL)animated { [self