Tag: xcode

Swift Compiler Error: “Expression too complex” on a string concatenation

I find this amusing more than anything. I’ve fixed it, but I’m wondering about the cause. Here is the error: DataManager.swift:51:90: Expression was too complex to be solved in reasonable time; consider breaking up the expression into distinct sub-expressions. Why is it complaining? It seems like one of the most simple expressions possible. The compiler […]

How to disable/enable the return key in a UITextField?

Is there a way to programmatically enable or disable the Return Key on the UIKeyboard? The closest I could find is enablesReturnKeyAutomatically, but that only will tell whether to disable it at all.

iOS8.1 Simulator always uses US keyboard layout despite german hardware keyboard

For some reason, I cannot enter text with my native german keyboard into iOS Simulator any more. After downloading XCode 6.1 (which contains iOS 8.1), I was stuck with the US layout. I tried things like changing all Hardware/Keyboard settings, deleting ~/Library/Preferences/com.apple.iphonesimulator.plist, and resetting the iOS simulator. Nothing helped! Should I reinstall the complete package?

Loading javascript into a UIWebView from resources

I need to load javascript files from my apps resources folder. As of right now, it does read images from the resources just fine, but it’s not reading javascripts for some reason. I have been able to render html docs that reference these javascripts if the html files themselves are written into the resources, but […]

Watchkit Extension – No matching provisioning profiles found

I have created an iPhone app that also includes a WatchKit extension, I can run this fine in the simulator but when trying to deploy to an iPhone I get a provisioning issue for the WatchKit Extention target: “The provisioning profile specified in your build settings (“XXXX”) has an AppID of “XXXX” which does not […]

Xcode 7.2 no matching provisioning profiles found

Before upgrading Xcode to 7.2, I was using Xcode 7.1.1 to build and distribute apps. I have upgraded to Xcode 7.2 and none of my provisioning profiles (matched to that particular app’s bundle ID) match my installed certificates that were working in Xcode 7.1.1. I only get: Your build settings specify a provisioning profile with […]

Open a facebook link by native Facebook app on iOS

If the native Facebook app is installed on the iPhone. How do I open a facebook link into the native Facebook app from my app. In the case of opening by Safari, the link is same as: http://www.facebook.com/AlibabaUS Thank you.

Cannot generate iOS App archive in xcode

I have a problem generating a iOS App archive from an application. The application compiles just fine and even works in the simulator. Now I wanted to make som ad hoc testing and cannot generate the iOS App Archive. When I click on the Product -> Archive it generates a generic xcode archive. Can anyone […]

MKAnnotationView Push to View Controller when DetailDesclosure Button is Clicked

I would like to switch views when a DetailDisclosure is clicked on a map I am displaying. My current code is as below: – (void)mapView:(MKMapView *)mapView annotationView:(MKAnnotationView *)view calloutAccessoryControlTapped:(UIControl *)control { DetailViewController *detailViewController = [[DetailViewController alloc] initWithNibName:@”DetailViewController” bundle:nil]; detailViewController.title = dictionary[@”placeLatitude”] [self.navigationController pushViewController:detailViewController animated:YES]; } I can push to the view controller with this, but […]

Codesign error: Provisioning profile cannot be found after deleting expired profile

Tried to rebuild an app that was just working yesterday. Got a message that a profile had expired, so I removed it from the iPod and from iTunes. When I chose a new profile (one with an * in the identifier), I now get an error: Code Sign Error: Provisioning Profile (long string) can’t be […]