xcode4.2

Xcode 4.2 is very slow to save a file / frequently beach-balls

╄→尐↘猪︶ㄣ 提交于 2019-12-11 03:09:15
问题 I am using Xcode 4.2 for Lion / production version. the previous version of Xcode 4 performed just fine. every time i save a file and sometimes randomly, the beach-ball shows for 5-10 seconds for no apparent reason. i am using subversion for what its worth. i captured a sample and it seems to be somewhere in here: 1775 Thread_791676 DispatchQueue_1: com.apple.main-thread (serial) + 1775 ??? (in Xcode) load address 0x103392000 + 0xeec [0x103392eec] + 1775 NSApplicationMain (in AppKit) + 867

Xcode project broken, freezes while 'Scanning Classes'

怎甘沉沦 提交于 2019-12-11 02:48:19
问题 I have an xcode project which crashes xcode every time it's opened. Xcode says "Scanning Classes | Processes 0 of 292 files" at the top continuously and eventually crashes, particularly when I open an .xib files. This happens on multiple computers. Does anyone have idea what could cause this problem? 回答1: Today I had a similar problem. Xcode 4.2.1 seemed stuck at "Scanning Classes". It would crash, or if not, it would still not be able to edit .xib files and connect outlets to objects. In my

upgraded to xcode 4.2 now exc_bad_access on dimissModalViewcontroller

南楼画角 提交于 2019-12-11 02:38:11
问题 Hi I'm having a weird problem. My app is based on the samplecode of "PageControl" (the Apple example). It uses a horizontal scrollview in which most of the stuff is happening. At he bottom I have a UIToolbar from which I call a modal viewcontroller. On XCode 4 everything worked like a charm, after the upgrade to XCode 4.2 (with the new SDK) I get a "exc_bad_access" on dimissModalViewcontroller. The funniest thing is that it does not happen rightaway but only after 2 or 3 times presenting and

Command /usr/bin/codesign failed with exit code 1: i386: No such file or directory

我的梦境 提交于 2019-12-11 02:14:49
问题 I have an error that just occurred. I think it was when I changed some of my build settings. I wanted my app to work with both armv6 and armv7. But now I get this error saying Command /usr/bin/codesign failed with exit code 1 and i386: No such file or directory . Here is the entire error log: CodeSign /Users/Jacos/Library/Developer/Xcode/DerivedData/Kapareskolan-asnymemcjzpjdwbpftlqeknpdmsq/ArchiveIntermediates/Kapareskolan/InstallationBuildProductsLocation/Applications/Kapareskolan.app cd "

Testing internet connection on iPad app using ios5

﹥>﹥吖頭↗ 提交于 2019-12-11 02:10:04
问题 I have been searching through the forum regarding how to check whether there is internet or not in my ipad app. I just created a simple webview project with other view controllers and I need to display a UIAlert message when the internet is not available. In my case it is displaying the message when I run the app. When I run the app with internet and then deactivate the internet, it does not show the UIAlert message, that is if I switch between the views, it does not any more show the no

How to statically link OpenSSL with my app in Xcode?

我只是一个虾纸丫 提交于 2019-12-11 01:57:58
问题 I am using a third party code which uses OpenSSL Crypto library. Since OSX 10.7 Apple has deprecated the use of OpenSSL in favor of their own solution. Since I have no experience in Crypto coding, I cannot port the third party code to use Common Crypto. So to safeguard against the possibility that Apple may later drop OpenSSL, is there a way to statically link it with my app in Xcode? I added the part 'in Xcode' since I am new to Xcode too, so when you tell me something like 'put flag X' then

I can not insert data into sqlite3 file on XCode

我的未来我决定 提交于 2019-12-11 01:36:32
问题 I did not find answer that satisfy me, I can insert data into database and I can also select from it on simulator, but when I close the simulator and open it again, I can't see any data. Also I opened it on the terminal and I did not see any data in it. Did I miss any line or is there any logic error? What did you try? any suggest for me? I inserted data into my code is like this: databasePath = [[NSBundle mainBundle] pathForResource:@"persons" ofType:@"sqlite3"]; const char *dbpath =

bundle sqlite database with app and stringByAppendingPathComponent error

落爺英雄遲暮 提交于 2019-12-11 01:18:34
问题 There are probably many other questions I don't even know to ask yet since I'm new to app programming. I initially created the database from within the app, copied it to my working folder (which is probably not where it should ultimately reside), then appended my records (about 1,000 of them) from a text file. The first two questions that come to mind are: - what folder should the database be in? - how does it get deployed with the app? I found quite few examples using the following lines in

Attach a pdf file in-app-mail

走远了吗. 提交于 2019-12-10 23:29:54
问题 I tried to attach my pdf to an in-app-mail. The in-app-mail displays an icon with the pdf but it doesn't send it. I don't know why... Here's the code: - (void)openInEmail { if ([MFMailComposeViewController canSendMail]) { MFMailComposeViewController *viewController = [[MFMailComposeViewController alloc] init]; viewController.mailComposeDelegate = self; [viewController setSubject:@"Stundenplan 1A"]; NSArray *sysPaths = NSSearchPathForDirectoriesInDomains( NSDocumentDirectory, NSUserDomainMask,

Xcode 4.2 / iOS 5 - Atleast one of the following architectures must be present : armv6

蓝咒 提交于 2019-12-10 22:53:56
问题 I've just upgraded to iOS5 / Xcode 4.2 and I'm now trying to submit an application to the App Store. When I try to validate my Archive, I get an error saying: iPhone / iPod touch : application executable is missing a required architecture. Atleast one of the following architectures must be present: armv6 I've checked a few similar questions and the most of the accepted answers just said set the Build Active Architecture Only to NO . I've done this already and I still have the same issue. Here