xcode5

Multiple cursors / highlight next instance of currently highlighted word

感情迁移 提交于 2019-11-30 10:24:20
问题 In Sublime Text, it's easy to select the next instance of a word by pressing command + d and also place multiple cursors by pressing command & clicking . I know I'm not alone in saying this is an incredibly useful function in editors. I haven't had any luck in finding any key mappings or Alcatraz plugins for this, so I was interested to see if either there is a way to do this in xcode 5 which I might have missed or if there are plans to implement this in xcode 6? If there isn't, and any xcode

Decrease iOS Application size to App Store

僤鯓⒐⒋嵵緔 提交于 2019-11-30 09:20:28
I am trying to submit an application in App Store, and I need to decrease its memory a little bit, if this is possible. I tried a method which I am gonna describe below to make my app lighter, but with not luck. Details I followed these steps to see what was causing this large size Make an archive of the project Distribute it Save for Enterprise or Ad-Hoc Deployment Select the .ipa file and changed the extension to .zip Extract it, and open Payload Show the Package Contents Contents I had .png files with 680 Kb (when I added those where 32 kb approximately), I deleted them and I reduced the

How to get back the UIButton border in iOS 7?

最后都变了- 提交于 2019-11-30 09:06:00
I built an old project in iOS SDK 6.1 in Xcode 5 . However, the UIbutton is borderless when the app runs on an iPhone running iOS 7. I have checked the .xib is "Builds for" > "Project Deployment Target (5.0)": How can I config Xcode 5 to build the project to show an iOS 6.1-style UIButton? you can create a category: - (void)setRoundedBorder:(float) radius borderWidth:(float)borderWidth color:(UIColor*)color { CALayer * l = [self layer]; [l setMasksToBounds:YES]; [l setCornerRadius:radius]; // You can even add a border [l setBorderWidth:borderWidth]; [l setBorderColor:[color CGColor]]; } Try

iOS7 new update V 7.1(11D167) not compatible in Xcode 5 for development

我的梦境 提交于 2019-11-30 08:40:42
I got notification of IOS7 new version V7.1. I have installed on my iPhone 4S. As I am developer my iPhone 4S is not detected in development mode in Xcode 5 SDK. When I opened organizer in Xcode. It shows, The version of iOS on “iPhone 4S” is not supported by this installation of the iOS SDK. Please restore the device to a version of the OS listed below, or update to the latest version of the iOS SDK; which is available here. OS Installed on iPhone 4S 7.1 (11D167) Hope Apple fix this issue. Thanks for any help. You can update to the latest version of Xcode using the OS X App Store application.

Test bundle could not be loaded because an unanticipated error

大兔子大兔子 提交于 2019-11-30 08:22:04
Recently I have started writing test case for one old static library. I have loaded the library to Xcode 5,Since Static Library is old , I have to manually add TestProject with Test Target. When I am trying "Product-->Test" , It launches emulator and Console shows following error The test bundle at /xxx/xxx/xxx/StaticLibTest.xctest could not be loaded because an unanticipated error occurred: Error Domain=NSCocoaErrorDomain Code=3587 "The bundle “StaticLibTest.xctest” couldn’t be loaded because it is damaged or missing necessary resources." (dlopen_preflight(/xxx/xxxx/xxx/Debug-iphonesimulator

Custom Trigger Scripts for Bot (Xcode 5 CI)

谁都会走 提交于 2019-11-30 08:06:33
I am working on setting up CI for my iOS application and I am facing some issues. Where is a good place to find documents on Bot? I have seen the Xcode help but cant find any good example, also watched the CI video from 2013 conference How do i create a custom trigger script, so every time a developer commits their code it will automatically trigger the bot. How do I merge the code to master only if Test successfully passes the bot? Here is where I found info about trigger scripts https://help.apple.com/xcode/mac/1.0/#apdE6540C63-ADB5-4B07-89B7-6223EC40B59C Example values are shown with each

Could not build module UIKit

别等时光非礼了梦想. 提交于 2019-11-30 07:45:23
问题 Suddenly it stops building application in device. In simulator its working but when I connect the device and try to run it in device it gives me an error: Could not build module UIKit I tries a lot but couldn't solve it. 回答1: A full clean + deleting the derived data worked for me. Be sure to fix any code that may be broken because UIKit cannot be installed, before the clean and build. So, for example, if you are trying to reference UICollectionViewController, and need UIKit to reference it,

Xcode 6 resizes app automatically for iPhone 6 and 6 plus

ⅰ亾dé卋堺 提交于 2019-11-30 07:30:15
问题 I was developing app in Xcode 5 for iOS 7 on iPhone 5 inch storyboard. I prepared my app and its buttons, images and other stuff to fit iPhone 5 screen size, and then programmatically optimized app to fit iPhone 4 and 4s. And then Xcode 6 came, and two new devices, iPhone 6 and iPhone 6 plus. I was thinking that i will have to spend few hours again to programmatically optimize app for those resolutions. But i tried run my app on my new iPhone 6 and strange thing happened. App itself made

Compile protobuf with xCode 5

时间秒杀一切 提交于 2019-11-30 06:53:06
问题 I want to use protobuf(https://code.google.com/p/protobuf/) in my project Did you successfully compile protobuf with xCode 5, Please help to share your experience? Thanks. 回答1: If you don't mind building Google Protobuf yourself then a good alternative to using Cocoapods is to run the bash script here. https://gist.github.com/BennettSmith/7150245 This script will produce a proper build of Google Protobuf that supports the i386, armv7, armv7s, arm64 and x86_64 architectures. It will produce a

ld: symbol dyld_stub_binding_helper not found, normally in crt1.o/dylib1.o/bundle1.o for architecture i386 xcode 5

非 Y 不嫁゛ 提交于 2019-11-30 06:42:42
问题 I created iphone/ipad app that was working well by xcode 4 and iOS6 and I installed xcode 5 and I'm trying to run my app, but it now gives me the following error ld: symbol dyld_stub_binding_helper not found, normally in crt1.o/dylib1.o/bundle1.o for architecture i386 clang: error: linker command failed with exit code 1 (use -v to see invocation) How can I fix this? hope anyone help me. Thanks in advance. 回答1: For me, I also need to set up the Deployment Target from older version 3.0 to 7.0 .