Search results for

xcode github

91,969 results found

Post

Replies

Boosts

Views

Activity

IOS App Install Fail Over The Air
Hi, I'm using Xcode6 and created a test app for ipad. It compiles and runs fine in simulator. My next step is to distribute it using adhoc distribution mechanism. Here is what I've done1. Using Keychain Access to create a public/private key pair.2. Load it up into Developer Center to create a certificate, then download it.3. Add my ipad UUID under Devices.4. Create a adhoc provisioning profile by including my ipad in it, I only have one device in Member Center. Let's call the provision MyProv.5. Run the .cer file by double clicking it.6. Download the .mobileprovision file from Member Center to desktop. Then double click it.Now, in Xcode, under Build Setting, I change Provisioning Profile Debug and Release entry to point to MyProv, then run Product->Archive. When archiving the app, Xcode as me if I want to use my key created in step 1 above to sign the bundle. I allow it. I also choose to Save for ad hoc distribution when asked. In the summary page, I can see the Provisioning Profile colum
2
0
1.7k
Jun ’15
Reply to Strong reference cycle in a closure
If you add a bit of code and run it in a playground (Xcode 7 beta):class C { var m: () -> () = {} let identity: String init?(_ name: String) { identity = name print(init (identity)) } deinit { self.m() print(deinit (identity)) } } var ci = C(a) ci!.m = { var text = reference = (ci!.identity) print(text) } ci = C(b)when ci.m is run in deinit, it actually prints out reference = b even though it is deallocating a.The closure is actually capturing a reference to the local variable c1, not a reference to the instance that c1 is pointing to at the time. So no strong reference cycle is created.
Topic: Programming Languages SubTopic: Swift Tags:
Jun ’15
Reply to Adhoc distribution for non-developer
I highly doubt they will open any loophole that allows unlimited distribution outside the App Store, if that's what you mean. I don't know whether or not ad hoc distribution will be possible without a membership or whether apps will only run when connected to Xcode, but in any case the number of devices will still be strictly limited. I would bet my bottom dollar on that.
Topic: App & System Services SubTopic: Core OS Tags:
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 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
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.1k
Jun ’15
MailCompositionService quit unexpectedly
I'm having an issue with mail and iOS 9. I have a button in my app that creates a MFMailCompositionViewController used for submitting feedback via email. This works fine in iOS 8. However, in the iOS 9 simulator, whenever I push this button, a window outside of the simulator pops up saying MailCompositionService quit unexpectedly.Meanwhile, the Xcode console shows the following output:viewServiceDidTerminateWithError: Error Domain=_UIViewServiceInterfaceErrorDomain Code=3 The operation couldn’t be completed. (_UIViewServiceInterfaceErrorDomain error 3.) UserInfo=0x7fa3aaff02b0 {Message=Service Connection Interrupted}However, the app hasn't actually crashed. It continues to work fine. The app only crashes if I try to share something via email using UIActivityItemProvider. And when this crash happens, there's no log output other than (lldb). Is this just an issue with the simulator? I haven't tried running the app on an actual device with iOS 9.
11
0
12k
Jun ’15
UI Testing Failure due to failed AX Action
When I run a UI Test in Xcode 7, the line XCUIApplication().launch() causes the test to fail under the Wait for app to idle step:UI Test Activity:Assertion Failure: UI Testing Failure - Failed to perform AX action for monitoring the animations of Target Application, error: Failed to perform AXAction 2043 after 30 retries: kAXErrorServerNotFound (see <rdar://problem/15530121>)Any idea what might be causing this failure?
3
0
15k
Jun ’15
datamitigator Carousel quit unexpectedly
Every time I try to run a watch app in the simulator I get these errors:Carousel quit unexpectedlyApplication Specific Information:Assertion failed: (false), function -[CSLHexAppGraph decrementNeighborCountsForHex:], file /BuildRoot/Library/Caches/com.apple.xbs/Sources/Carousel_Sim/Carousel-342.5/Carousel/UI/Mazda/Models/CSLHexAppGraph.mm, line 859.CoreSimulator 159 - Device: Apple Watch - 38mm - Runtime: watchOS 2.0 (13S5254w) - DeviceType: Apple Watch - 38mmcom.apple.datamitigator quit unexpectedlyApplication Specific Information:*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[NSFileManager enumeratorAtURL:includingPropertiesForKeys:options:errorHandler:]: URL is nil'terminating with uncaught exception of type NSExceptionabort() calledCoreSimulator 159 - Device: iPhone 6 - Runtime: iOS 9.0 (13A4254u) - DeviceType: iPhone 6Reinstalled xcode 7 twice now to see if it would fix
0
0
844
Jun ’15