Tag: xcode

Undefined symbols for architecture arm64

I am getting a Apple Mach-O Linker Error everytime I import a file from CocoaPods. Undefined symbols for architecture arm64: “_OBJC_CLASS_$_FBSession”, referenced from: someFile ld: symbol(s) not found for architecture arm64 I get about 12 of these, for the various Pods I use. I am trying to build for the iPhone 5S using XCode 5. […]

cordova-plugin-camera show camera options based on the users phone language

I use the camera plugin in my cordova app. While using the camera from the app in an ios device the labels shown are in the language that is selected from the “Localization native development region” in XCODE which currently is Danish and the options are displayed in Danish. Is it possible to automatically take […]

How to force a UIViewController to Portrait orientation in iOS 6

As the ShouldAutorotateToInterfaceOrientation is deprecated in iOS 6 and I used that to force a particular view to portrait only, what is the correct way to do this in iOS 6? This is only for one area of my app, all other views can rotate.

How to change the background color of a UIButton while it's highlighted?

At some point in my app I have a highlighted UIButton (for example when a user has his finger on the button) and I need to change the background color while the button is highlighted (so while the finger of the user is still on the button). I tried the following: _button.backgroundColor = [UIColor redColor]; […]

How to symbolicate crash log Xcode?

Xcode 5 organizer had a view which would list all the crash logs. and we could drag drop crash logs here. But since Xcode 6, I know they have moved devices out of organize and have a new window for the same. But I do not find a place where I view the crash logs […]

How to validate an url on the iPhone

In an iPhone app I am developing, there is a setting in which you can enter a URL, because of form & function this URL needs to be validated online as well as offline. So far I haven’t been able to find any method to validate the url, so the question is; How do I […]

Impact of Xcode build options “Enable bitcode” Yes/No

Yesterday I recognized a ton of warnings regarding the parse.com library: URGENT: all bitcode will be dropped because ‘[path]/Parse.framework/Parse(PFAnalytics.o)’ was built without bitcode. You must rebuild it with bitcode enabled (Xcode setting ENABLE_BITCODE), obtain an updated library from the vendor, or disable bitcode for this target. Note: This will be an error in the future. […]

What is a StoryBoard ID and how can i use this?

i’m new to IOS developing and recently started in Xcode 4.5. I saw for every viewController that i could set some identity variables including the storyboard ID. What is this and how can i use it? I started searching on stackoverflow and couldn’t find any explanation for it. I assumed it’s not just some stupid […]

Can you build dynamic libraries for iOS and load them at runtime?

Are dynamic libraries supported on iOS (iPhone/iPad)? In Xcode, I tried to create a New project -> Framework & Library -> Cocoa Library (dynamic). In the project settings, I set the Base SDK to iOS device 4.1 and target to iOS4.1, but it has a build error: target specifies product type ‘com.apple.product-type.library.dynamic’, but there’s no […]