xcode5

How to localize my app with Xcode 5?

懵懂的女人 提交于 2019-12-03 02:04:52
问题 This is a follow up question (and answer) on the How to localize my app with Xcode 4? question. How do I localize my app with Xcode 5.x? 回答1: It's quite simple once you understand it. The first thing you want to do is add a localization file to your project. To do so, simply select your project's main group , then, from the toolbar, select File → New → File... (or just hold down ⌘N ) . Under the Resource category, select Strings File , and name it Localizable.strings (note that it is case

Selector name found in current argument registers: isEqual:

被刻印的时光 ゝ 提交于 2019-12-03 02:04:07
I am looking for some assistance with squashing a bug in an OSX app that i just can't work out. I am getting a logged error of: Selector name found in current argument registers: isEqual: But i can't for the life of me work out where it's coming from as the log is very unhelpful. Also i can't reproduce this on my own test systems, but it seems to be happening quite a lot on some of the beta testers machines. This only seems to happen on 10.9. Here is the log file for the crash: Incident Identifier: 77FAD32D-0316-489E-B898-9C084A4FF48A CrashReporter Key: A9FEF4E7-53F7-5FD1-AEDE-915C87BD437F

Use of xcassets

ぃ、小莉子 提交于 2019-12-03 02:03:11
Is .xcassets resource only for app icons and launch images or for our own image assets also? I do know that we can add our images to the .xcassets file, but is it good practice to do so? Use of xcassets is the new standard as of Xcode 5 and iOS 7. Import images by clicking on the blue folder called "Images.xcassets" then click on the small "+" plus sign at the bottom of the window that appears. Now choose "Import" to put images in there. This is also the new location of the icon and launch images instead of the standard target->general location, although this is where you still have the option

How to use iOS Simulator 7 \ XCode 5 to test pre-iOS 7 UI (without upgrading the app for iOS 7)

纵然是瞬间 提交于 2019-12-03 01:58:24
问题 Compiling my app on XCode 4.6.3 and running it on iOS 7 works great. Compiling my app on XCode 5 and running it on iOS 7 results a big UI mess I don't want to handle right now. (iOS 7 pickers, tabbars, tableviews etc') Goal: I want to be able to use XCode 5 and test my app on the iOS 7 simulator but still use the iOS 6 and lower UI and feel. Reason: I don't want to redesign my app to iOS 7 but I do want to make sure it runs fine on iOS 7 using XCode 5 iOS 7 simulator. Is there a quick toggle

How to create a universal dylib from pre-built dylibs for each architecture?

走远了吗. 提交于 2019-12-03 01:53:43
For another universal library I need to combine 2 existing dylibs (here x86 and x64) into a single universal lib. How can I do that without re-building the existing libraries? Actually, it's extremely easy to do once you know it. There's a tool called lipo that can do a number of things with dylibs. One is to combine two (or more) libraries. For example: lipo lib1.dylib lib2.dylib -output combined.dylib -create where lib1 could be an i386 and lib2 an x86_64 arch type. It will create a dylib in the local folder containing both archs. 来源: https://stackoverflow.com/questions/22783453/how-to

Add local repo for existing Xcode 5 Project

為{幸葍}努か 提交于 2019-12-03 01:32:40
问题 I've running through a Xcode 5 tutorial and want to make some significant changes, but want to make this Xcode 5 project into a repository. I've done some reading and you can add a repository by going to Xcode -> Preferences -> Accounts -> Add Respository -> Enter the repository address: So what would I input here for a local repository (on my iMac) I'm wanting to work on? Cheers. 回答1: I would do this from the command line. Close Xcode.app Open Terminal.app $ cd /path/to/project/dir $ git

How remove a old provisioning profile in xcode 5?

若如初见. 提交于 2019-12-03 01:28:44
问题 I've install different provisioning profile in my xcode 5, before for remove it you had a session with all provisioning profile installed on the mac, but now this session disappear, how can I have access to this session now? 回答1: The best way to do this in XCode 5 is using an iPhone Configuration Utility. It lets you manually delete duplicates of provisioning profiles with ease and speed. I keep Xcode closed when I do this just in case. Edit: For anyone wondering how to actually 'delete'.

Use of Unit Test in Xcode 5

元气小坏坏 提交于 2019-12-03 01:25:46
I am writing my first bigger iOS project and I want to use as much of Xcode 5 as possible. Now I want to use testing but I have never done it before. My project uses come Views and dynamic `TableViews. How could I implement the test in the code, so that it makes sense? Please start by watching WWDC '13 session 409 - Testing in Xcode 5 . It's a very good starting point. Next, if you're not feeling confident of your approach to unit testing, I'd recommend reading "Test-Driven iOS Development" by Graham Lee . For now, remember that a unit test tests single "unit" of functionality and does not

Xcode 5 Round Rect Buttons

老子叫甜甜 提交于 2019-12-03 01:18:06
问题 I have an app that incorporates many round rect buttons. However, in xcode 5, those dont exist. How do I get the round rect buttons back? They are essential to my app. Now it just is pressable text. What do I do? I am planning on releasing this app later, if that is relevant. 回答1: Open the storyboard and choose the button you want to change. Open the Identity Inspector in the Utility Panel (right panel, 3rd button on top). Add (+) a new User Defined Runtime Attribute -- Key Path: layer

General tab missing

∥☆過路亽.° 提交于 2019-12-03 00:54:11
I have just switched over to using Xcode 5. I have gone to change the name of my application with some other settings which I need to change, However when I have gone to do this I noticed my "General" tab is missing. Does any one know why this may have happened. See up in the left hand corner of your screenshot the blue icon? You have your project file selected and are viewing the project's global settings, which don't have a "General" tab. Click either the triangle in the box up there or the lower blue icon with "template" and select a build target. Just a quick update how to do it in Xcode 8