xcode5

Xcode 5 iOS 7 CocoaPods Linker Error

我是研究僧i 提交于 2019-11-28 22:50:39
I just upgraded my old project to new iOS 7. It was already using Cocoapods. I compile and run and everything works fine on the simulator and the device. I tried to archive it using Xcode and I get the following error. ld: library not found for -lPods clang: error: linker command failed with exit code 1 (use -v to see invocation) Any ideas! UPDATE: The architecture for the Pods project is set as the following: Standard architectures (armv7,armv7s) SOLUTION : Cocoapods has been removed from my project. Everything is good now! Sounds like you just needed to update cocoapods. For anyone else who

Xcode 5, disabling Storyboards [duplicate]

时间秒杀一切 提交于 2019-11-28 22:26:36
问题 This question already has answers here : Xcode without Storyboard and ARC (6 answers) Closed 6 years ago . I don't want to use story boards, i'd much rather use NIB's for UI when necessary, and I particularly don't want to use them for the default templates. Xcode 5 no longer has the check box to say you don't want to use Storyboards, can anyone help? It's really annoying... 回答1: STEPS FOR REMOVE STORY BOARD - XCode 5 (EDIT) 1/ Create an empty project 2/ Add new files with xib for your

Xcode 5 says tests failed but shows green checkmarks

僤鯓⒐⒋嵵緔 提交于 2019-11-28 22:21:30
I have written a few unit tests in the new XCTest framework of Xcode 5. The tests seem to pass successfully most of the time, but I've come across a strange behaviour where if I run the tests enough times consecutively, eventually I'll get a 'test failed' message and the console will show Program ended with exit code 0 , but there are green checkmarks beside all the tests. What's going wrong here? This is definitely a bug. Submit a report via https://bugreport.apple.com/ feel free to reference my report (15251050). Until the bug is fixed, close the project and re-open it. Build Clean worked

Compile protobuf with xCode 5

人走茶凉 提交于 2019-11-28 22:05:00
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. 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 static library that is universal. It will also produce the protoc compiler for use on OS X. You can add

How do i request mic record permission from user

允我心安 提交于 2019-11-28 21:09:53
问题 I am using the new iOS7 developer SDK and now the app request from the user his permission to record from mic when the App try to record in the first time. My App will record after a countdown,so the user can't see this request. I use this code to check the requestRecordPermission : [[AVAudioSession sharedInstance] requestRecordPermission:^(BOOL granted) { if (granted) { // Microphone enabled code } else { // Microphone disabled code } }]; But how can i trigger the request by myself before i

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

痞子三分冷 提交于 2019-11-28 21:04:07
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. For me, I also need to set up the Deployment Target from older version 3.0 to 7.0 . I solved it. I was forgot to change the deployment target to 7.0 and it was 3. You need to change the

EXC_BAD_ACCESS (code=1, address=0x0) when stepping in debugger

℡╲_俬逩灬. 提交于 2019-11-28 20:55:35
问题 My application crashes each and every time I try to step over a call. Without debugger it works fine. Also, when I run the app in simulator it woks fine with or without debugger. Recently I upgraded my Mac OS X 10.8 to 10.9 (Mavericks). There were no issues before the upgrade. What causes the issue and how could I fix it? Below is the back trace. My app uses ARC. I have enabled zombies and added exception breakpoint but no zombies where detected and exception breakpoint is never triggered. *

How to make a ScrollView with AutoLayout in Xcode5

▼魔方 西西 提交于 2019-11-28 20:42:35
In xcode 5 using storyboards how would one make a fully operational vertical scrolling scrollview, with AutoLayout ON? Considering the subviews have hierarchy: 1.UIView 2.UIScrollView 3.UIView (lets call this UIDetailView to make things easier) Please be specific from code to constraints to wether any of the views HAS to be smaller etc. This blog post details how to use a UIScrollView with Autolayout ON, using a pure autolayout approach. Note though that all constraints in the blog post are defined through the Storyboard. The approach in the post assumes the following hierarchy: 1. View (main

using SVN 1.8.3 with Xcode 5

淺唱寂寞╮ 提交于 2019-11-28 20:39:26
问题 I updated the Subversion client on my system to 1.8.3. I did a checkout of my repository from Xcode 5's Source Control menu. Then in terminal opened that directory and did an svn update command just to check. I get this message - The working copy at '/Path' is too old (format 29) to work with client version '1.8.3 (r1516576)' (expects format 31). You need to upgrade the working copy first. If I upgrade my copy, I lose access to the Source Control menu options because the version is too high

Xcode 5 Framework/Library Search Path Absolute Address

妖精的绣舞 提交于 2019-11-28 20:12:50
I updated my Xcode to 5.0. I added some library/framework search paths and the path it's displaying is the absolute path. For example, if my folder is in my desktop it would display /Users/username/Desktop/"foldername"/"subfolder"/"subfolder"/"framework". Because of this, whenever I check out a working copy in another mac, I have to remove references to certain libraries/frameworks and add them back in. Isn't there a way to fix it where I don't have to remove-add reference again? Here's what i did: $(SRCROOT)/"subfolder"/"subfolder"/"framework" This is what we're using before in previous Xcode