xcode4

Moving localization folders in Xcode 4

纵然是瞬间 提交于 2019-12-30 07:22:29
问题 I've recently upgraded from Xcode 3 to Xcode 4.2, and migrated an existing iOS apps to use this new version. This app is localized, and I now want to add another language. Under Xcode 4, when I add the new localization, it creates the country specific folder in the project root. For example: /fr.lproj All of my prior language folders are in a Resources sub-folder, however. Such as: /Resources/de.lproj /Resources/en.lproj For the life of me I cannot figure out how to get Xcode 4 to move the

Xcode 4 - How do I get the .app file?

牧云@^-^@ 提交于 2019-12-30 05:08:33
问题 I installed Xcode 4, it has very cool features. I developed my new app with Xcode 4 and its time give it to client for their testing. The problem is the that I am not able to get the .app file in finder. Under product category when I choose the .app file and right click on it there is no option for "show in finder". I need that file so I can send it to client for testing. In the Xcode 3, the option was there. Any help will be appreciated. Thanks. 回答1: You could also select Product -> Build

Xcode Project-Wide compiler flag

回眸只為那壹抹淺笑 提交于 2019-12-30 04:40:33
问题 With Xcode 4.2 and the LLVM compiler, when compiling for ARMv6 there are some very weird bugs in the generated application (such as "width" property of CGSize returning the "height" instead). To fix this, I found I must set the compiler flag -mno-thumb. I know how to set compiler flags on a file-by-file basis, but is there a way to set a compiler flag for the entire project? 回答1: You can set project wide compiler flags in the project settings under the "Language" section of the "Build

XCode4 - where to look for sqlite file created by core data

谁说胖子不能爱 提交于 2019-12-30 02:19:05
问题 I have just started using core data. I want to setup a pre-populated db. I read somewhere that core data creates a sqlite file when a core data app is run. I don't know where to look for it though. I followed the instructions over on this blog but did not find the sqlite file over the location specified directory /Users/<Username>/Library/Application Support/iPhone Simulator/User/Application/<Application GUID>/Documents/<database name.sqlite> nor in the application directory. here is my code

Test phase is grayed out in XCode 4

匆匆过客 提交于 2019-12-30 01:34:12
问题 I've been using GHUnit in my project because the built in unit testing was so terrible in XCode 3. However, now that they've been fixed in XCode 4, I want to switch back to the official testing framework. I added a new "Cocoa Touch Unit Testing Bundle", which also adds a test case designed to fail, but "Test" under the Product menu is still grayed out. What else do I need to do to get unit tests running in my project? 回答1: You need to edit the scheme for your main application target. Click

PLCrashReporter in XCode 4 - won't compile in Simulator

余生颓废 提交于 2019-12-29 05:26:25
问题 I must be doing something totally stupid here, but I can't get the PLCrashReporter framework included in my project. Here are the steps I took to get the framework: Downloaded the .dmg file from the official project site on google code Copied the CrashReporter.framework folder to the root directory of my project Added the framework by going to my project, selecting the target, going to the Build Phases tab, opening the Link Binary With Libraries section, clicking the plus sign, and adding the

Check Update Available App Store

隐身守侯 提交于 2019-12-29 03:40:22
问题 Anyone known if exist some way to check if exist one update available on App Store?? I want notify to user the new updates on my application begins... Thanks 回答1: Just use ATAppUpdater, it is 1 line, thread-safe and fast. It also have delegate methods if you would like to track user action. Here is an example: - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { [[ATAppUpdater sharedUpdater] showUpdateWithConfirmation]; // 1 line of

Is this a bug with MKMapKitDelegate mapView:didUpdateUserLocation?

笑着哭i 提交于 2019-12-28 18:04:12
问题 I've created a test application with only one view containing an MKMapView and a controller which acts as the MapView's delegate. When I do a fresh build (removed from the device completely before re-installing) and log the callbacks, I can see that mapView:didUpdateUserLocation is called twice before the user has indicated whether they wish to show their current location or not. The MKUserLocation objects passed to the callback are invalid: 2012-03-13 08:20:17.518 MapTest[3325:707] Did

How to link a .xib file to a class file with Xcode 4

本秂侑毒 提交于 2019-12-28 11:44:18
问题 have started a universal project under the new Xcode4. My Application works on both iPhone & iPad devices but not well design for the iPad. I have 2 .xib file for the MainWindow: MainWindow.xib (iPhone device) & MainWindow-Ipad.xib (iPad device). But only one .xib file for my MainView: MainView.xib. So I'm trying to create a specific .xib file for the iPad Device: New file > User interface > View -> next -> device family : iPad -> MainView-iPad.xib -> save And of course, there is nothing

Codesign error: Certificate identity appearing twice

筅森魡賤 提交于 2019-12-28 07:59:42
问题 CodeSign error: Certificate identity 'iPhone Developer: XXXX (12345678)' appears more than once in the keychain. The codesign tool requires there only be one. So I go to my keychain and delete it. But I get this error every time I restart Xcode 4 and some app is adding the expired old certificate back into keychain. Any ideas why and which app? 回答1: I just had the same problem. It has been fixed. It came after I submitted an app and installed a few certificates to sign the app. Quick Fix: