Search results for

Building for iOS Simulator, but the linked and embedded framework ‘XX.framework‘ was built for

186,361 results found

Post

Replies

Boosts

Views

Activity

Unable to Generate call on Watch OS 2
NSString *phoneNumberString = @tel:1234567891;NSURL *phoneURL = [NSURL URLWithString:phoneNumberString];[[WKExtension sharedExtension]openSystemURL:phoneURL];This is the code I'm using to try to generate a phone call on the watch. I am unable to debug when using the device and It's not possible to generate a call on the simulator, but I do hit the breakpoint on the simulator. I don't see what is wrong. Can anyone see a problem or help? Thanks.
3
0
827
Jun ’15
Reply to How to ignore errors?
In the Swift 2 Prerelease for the Swift book, it states:“There are some cases in which you know a throwing function or method won’t, in fact, throw an error at run time. In these cases, you can call the throwing function or method in a forced-try expression, written, try!, instead of a regular try expression.Calling a throwing function or method with try! disables error propagation and wraps the call in a run-time assertion that no error will be thrown. If an error actually is thrown, you’ll get a runtime error.”https://developer.apple.com/library/prerelease/ios/documentation/Swift/Conceptual/Swift_Programming_Language/ErrorHandling.html#//apple_ref/doc/uid/TP40014097-CH42-ID508(there is no way to deep-link to the relevant section but it's the second from last, Disabling Error Propagation.)If you have a chance to watch the video posted on the developer site from the What's new in Swift session, it's well worth it. I think that's where I saw this.
Topic: Programming Languages SubTopic: Swift Tags:
Jun ’15
Restore WatchOS to 1.0
Ladies, and Gentlemen As I am no genius on this, I guess it was just by luck that i was able to figure this out. I also was one of you that jumped the gun and installed all the Beta OS. On my Applewatch, iPad, iPhone, OS X. But as Beta goes, they are all but too buggy for everyday use. So to the good stuff. I have highlighted the info below that will help solve this head ache!!Pre-work: Make sure your iPhone that the watch is synced to and has the old back up is still running iOS 9. It will need to find the backup 1.0 Applewatch fileStep 1. Factory Restore ApplewatchStep 2. Sync Watch manually do not use the QR scanner as it only reads the 2.0 profileStep 3. Restore from backup any previous 1.0 back up. 1.0.1 backups will not work as it was an OTA updateStep 4. Let watch do it's magicAnd........wait for it, wait for it..... Repaired!! Back to WatchOS 1.0Follow OTA update back to 1.0.1 and recover your backup file.I suggest everyone remove iOS9 as well after the watch is fully restored.Thank you.Updat
14
0
2.8k
Jun ’15
watchOS 2 framework failing
I am using a custom embedded framework to make my watch extension currently work. However, when I use Xcode 7 with watchOS 2, I get a bunch of warnings, one of which offers to Update to recommended settings. Has anyone else gotten this?When I click Perform changes to update to the recommended settings, all the lines #import <MyFramework/MyFramework.h> in my watch extension interface controller files say file not found. I have checked to make sure that I am linking with the library MyFramework in the app extension, but this error still appears. Again, I wasn't having this issue prior to Xcode 7.Any help would be greatly appreciated. Thanks!Edit: I tried creating a brand new project with an Apple Watch app+extension. I created a custom framework and linked to it in my watch extension, but this error still shows up. So I don't think it has to do with the recommended settings...
5
0
5.3k
Jun ’15
Reply to iOS 9 Beta battery life
I too have been experiencing the same very fast battery drain that you are all talking about. I have an iPhone 6 16GB. I just recently re-install iOS 9 right over my previous iOS 9. Since doing this my battery life experience has greatly improved. I can't exactly say that things are back to normal but very much better than before I re-updated. I did try re-installing iOS 8.3, restoring from backup and then upgrading to iOS 9. 1st and 2nd time same results, battery life out of control. Now that I just updated right on top of iOS 9 and things have greatly improved. If things change I will re-post. Good Luck!!!
Topic: App & System Services SubTopic: Core OS Tags:
Jun ’15
Reply to WCSession sendMessage returning errors (simulator)
If you want to debug both of the processes at the same time, here's what I'd do. First, run the app on the watch simulator. Then, open up the app on the iPhone by tapping on the app icon. Then, go to Xcode, then the top menu Debug -> Attach to Process, and select the process for your iPhone app. This should have both apps running in the debugger simulatneously. Now you can insert breakpoints or whatever and ensure that you are properly activating the session on both sides.I haven't played with WCSession yet and gotten it working, but this might help you find an issue. I will give it a go when I get a chance soon hopefully!
Topic: App & System Services SubTopic: Core OS Tags:
Jun ’15
Reply to iOS 9 Beta battery life
Reposting this with more info:When the beta came out yesterday, I did an upgrade and not a restore. Today I litterally watched the battery percentage drop 1 percent every two minutes while I only had the home screen active (background apps disabled, location services disabled, etc). I kept checking the Settings -> Battery page and it show Home Screen at 15% of the usage, which was completely wrong.Today I did a complete restore and now things are better. The Settings -> Battery screen not only showed Photo App as the top user (I have over 8 gigs of phots and videos), but it also showed it as Background Activity. I didn't see that before I did the complete restore. Now, Mail, Messages and Calendar also show that. I'm sure the battery will still drain faster than with a production version, but at least it seems like the reporting is working correctly and it allowed me to understand what was sucking the life out of my battery.---------------------------------------------------------As an update, I have an
Topic: App & System Services SubTopic: Core OS Tags:
Jun ’15
How can I clear the network requests and responses left in the device memory?
I'm using AFNetworking as my basic networking library. When I do a memory dump on a jailbroken phone (iPhone 4, iOS 7.1), I can easily see request urls and/or responses (such as json objects) in the dump files in plain text. I checked with the memory leak tool in Xcode and there is no memory leak based on that.My app has sensitive data in the urls or responses (Like user's name, email address, etc), which are listed in the OWASP mobile risks (M4: Unintended Data Leakage). We are required to be in compliance with these standards so I want to clean this information right after the connection finished. What I have done so far:1) Set the cache policy in the AFNetworking to NSURLRequestReloadIgnoringLocalCacheData2) Disabling the NSURLCache in the app:NSURLCache *sharedCache = [[NSURLCache alloc] initWithMemoryCapacity:0 diskCapacity:0 diskPath:nil]; [NSURLCache setSharedURLCache:sharedCache];3) I also tried:[[NSURLCache sharedURLCache] removeAllCachedResponses];or[[NSURLCache sharedURLCache] removeCached
3
0
2.2k
Jun ’15
Reply to Photos crashing
Same issue - Mid 2010 MBP.Application Specific Information:Assertion failed: (ctx), function CIEAGLContextCreate, file /Library/Caches/com.apple.xbs/Sources/CoreImage/CoreImage-327.6/Framework/misc/CIEAGLContext.m, line 261.
Topic: App & System Services SubTopic: Core OS Tags:
Jun ’15
Bluetooth with AVAudioSessionPlaybackAndRecord
Hello!I am working on an app that plays audio and accepts voice commands simultaniously. When I play audio through bluetooth in my car, the Audio Session for the app uses the Bluetooth HFP ports. This causes the output audio quality to become very poor. If I switch to AVAudioSessionPlayback, the output is on the A2DP port, which sounds great. Ideally I would like to be able to play ouput through A2DP, and accept input through HFP, but I assume this is a limitation of bluetooth, or everything would already work this way to improve sound quality. For my app it would be acceptable to accept input from the phone's microphone, and play the audio through bluetooth, but this also seems impossible as described here: http://stackoverflow.com/questions/22146406/ios-input-mic-output-bluetooth-device. Any advice on improving playback audio quality when connected to bluetooth while using AVAudioSessionPlayback and record would be greatly appreciated. Has anyone encounted this issue before and had a suitable fix?T
3
0
4.9k
Jun ’15