Search results for

“translate scheme”

6,670 results found

Post

Replies

Boosts

Views

Activity

Synthesizing IPv6 addresses from IPv4 literals
The WWDC Your App and Next Generation Networks presentation discusses how the NSURLSession and CFNetworkAPIs in iOS 9 can synthesize IPv6 addresses when presented with IPv4 literals on an IPv6-only network.For those of us who still need to use sockets-level APIs due to existing code frameworks, is this procedure documented somewhere? Or is there any API available to just do the translation process?
2
0
2.1k
Jun ’15
Reply to On device watchOS debugging impossible
When I click Run on the [AppName] WatchKit App scheme, the status window says Running [AppName] WatchKit App on [Phone name]. It stays like that for about 45 seconds. Then it says Finished running [AppName] WatchKit App on [Phone name].Did the 'trust this computer' diaglog ever show on the watch? Unpairing and then re-pairing and restarting Xcode should have gotten you that prompt. The symptoms you are experiencing seem to indicate that this dialog was not presented after you upgraded.
Topic: App & System Services SubTopic: Core OS Tags:
Jun ’15
Reply to Apple watch initiate call
If you're specifically referring to how to initate a call from your apple watch app code. Check out the Phone Links URL scheme reference that is now avalible is watchOS 2.0https://developer.apple.com/library/prerelease/watchos/featuredarticles/iPhoneURLScheme_Reference/PhoneLinks/PhoneLinks.html#//apple_ref/doc/uid/TP40007899-CH6-SW1
Topic: App & System Services SubTopic: Core OS Tags:
Jun ’15
Reply to Where are the simulators for iOS Deployment target 8.3?
Hey KMT,- Note I originally dragged in a few png screen shots, but they don't actually display when I save them.When I create a new single view app in Xcode Version 6.3.2 (6D2105) the project pane above targets xcode sets the iOS Deployment Target to 8.3, and in the Scheme drop down, iOS Device is the only item available. When selecting the Drop down, there are no Simulators at all. But when I change the iOS Deploy Target to 8.2, I can then select various simulators.In my preferences I don't have 8.3 simulators, and can't download any as there are no options to do so.Do you have 8.3 Simulators? I did notice this behavior on my work Mac as well, so I figure that Apple overlooked this in the build.Perhaps I need to delete Xcode, and re-install it? Note: I actually routinely download the new version from the Dev center and not thruthe App Store.Thanks for lending your thoughts...
Jun ’15
Adding test target not work in Xcode 6
Hi,I am trying to add a test target in my current project using + sign at the bottom of the left column of Test Navigator (XCode 6.3.2). The target is created but never appear in the left column... and also, not appear in the test section of my scheme. It seem that this problem is related to my project, because it is working perfectly with template projects provided by XCode. My project document format was set to XCode 3.2, and now is set to 6.3, but it is still not working.Do you have an idea?Thanks!David
0
0
246
Jun ’15
command line compilation with Swift 2.0 targeting OS=8.3
I currently compile swift 2.0 with this:PLATFORM = 'platform=iOS Simulator,name=iPhone 6,OS=9.0'xcodebuild test -project $(PROJECT).xcodeproj -scheme $(PROJECT) -destination $(PLATFORM)but my customer is asking if I can complete back to OS=8.3. I set the Deployment target to 8.3 but when change my makefile to OS=8.3 it hangs for a while, then says it's Unable to find a destination matching the provided destion specifier:....Is it just looking for a compatible simulator or is this a larger problem?
0
0
236
Jun ’15
Inspect Bridged Signatures
Is there any way to see the translated Swift signature of an Objective-C Class imported via the Bridging Header?So e.g. given the following:// ObjC file SomeObjCClass.h @interface SomeObjCClass : NSObject - (NSString *)giveMeAStringForKey:(NSString *)key; @end // Bridging Header #import SomeObjCClass.hSwift sees this somewhat like this:// generated during compile time @objc class SomeObjCClass { func giveMeAStringForKey(key: String!) -> String! }And I'd like to inspect these generated type signatures. Any idea how to do that?
2
0
1.3k
Jun ’15
Reply to how to migrate objective c project to swift project in xcode
You have to rewrite but instead of starting from scratch:Keep both projects openComment out all of the Obj-C files/* this is how you comment out multiple lines*/Then copy and paste onto the Swift filesUn-comment out section by section of your code and see what errors you get.By reading the free Ibook (A programmers guide to Swift, or something of the like) you can see where the basic syntax differences are and ajust your code accordinglyFor any more complex code structuers that the book or you can't figure out how to translate to Swift; take those sections and ask in the fourms how to translate them and I'm sure you'll get help.
Topic: Programming Languages SubTopic: General Tags:
Jun ’15
xCode Server failed to start automated tests
Hello everyone,We encounter a problem when we try to use xCode Server to perform automated test.The destination of the automated test is the iPad 2 simulator. Also we have enabled code coverage for the corresponding scheme/targets.According to the logs for the Bot, at the end of the Build Log, it shows:xcodebuild[88163:801713] [MT] IDEBuildOperationQueueSetResourceManager: Resetting max operation to 1** TEST FAILED **None of the tests has been performed.From the console, the system log shows the following error:==== system log ===Jun 18 13:55:59: Xcode version: 6.3.2 (6D2105) (OS X SDK 13F34, iOS SDK 12F69) Jun 18 13:55:59: Server version: 4.1 (14S1092) Jun 18 13:55:59]: OS X version: 10.10.3 (14D136) Jun 18 13:56:00: common_reenable_update: UI updates were finally reenabled by application Xcode after 3.30 seconds (server forcibly re-enabled them after 1.00 seconds) Jun 18 13:56:01: inet_set_autoaddr(en1, 1) failed, Resource busy (16) Jun 18 13:57:29: process Xcode[93913] caught causing excessive wak
0
0
472
Jun ’15
Reply to Why must a modern language have Curly Braces?
Ha. 🙂Lisp/Scheme is very cool, but I don't miss functions that end like this: )))))))), or nested lets drifting rightward. And how to blend the Lisp syntax style with OO syntax style (object.method, obj.property), which is often very clean, and useful for IDE auto-completion. One call looks fine. (obj.method 1 2 3) But now chain calls on that. ((obj.method 1 2 3).method2 a b). Yuck.Robps. I first wrote obj.m e t h, but it censored it. See: obj.****. No Breaking Bad discussion here.
Topic: Programming Languages SubTopic: Swift Tags:
Jun ’15
MailSharingSupported AppleEvent Sandbox?
I'm trying to write a simple email app to handle various AppleEvents and send those messages using another protocol. As far as I know this is accomplished by 3rd party mail apps on OSX with MailSharingSupported, MailLinkSupported, MailPageSupported, and adding a mailto URL scheme type. There is a 5th in Mail.app, MailURLShareSupported, but there doesn't seem to be any documentation.The mailto scheme is straightforward, and seems to be the most common method; the MailLink and MailPage events are covered by Technical Q&A QA1722. However, I can't seem to get MailSharing to work at all because of sandboxing. Even if I move the codesigned app to /Applications and launch it there, I still get errAEPrivilegeError/-10004 for event mail/shim in Console. No entitlements I tried to add (com.apple.security.temporary-exception.apple-events, com.apple.security.scripting-targets, etc) seemed to work, probably because these grant permissions to my app, not the Mail service trying to contact it.--editI f
0
0
760
Jun ’15
Reply to Where is the GPU Frame Capture I keep seeing in WWDC Videos?
AHA! Edit the scheme per https://developer.apple.com/library/prerelease/ios/documentation/Miscellaneous/Conceptual/MetalProgrammingGuide/Dev-Technique/Dev-Technique.html and set GPU Frame Capture to Metal. Looks like Automatic doesn't work at the moment (or at least doesn't do what it would imply).Note: I hit this when running a SpriteKit project, so it may not be a problem for those using Metal directly.
Topic: Graphics & Games SubTopic: General Tags:
Jun ’15
Reply to Weak method argument
It seemed to work for me in a playground (I got different print results more like your Obj-C example), but maybe the timing is different in an actual app.What are you actually trying to do? If we knew then perhaps we can suggest a construct that actually achieves it.Note that in your original Swift code, this: dispatch_async(dispatch_get_main_queue()) { object = nil }does basically nothing, since 'object' is going to be released by the containing scope immediately afterwards. All you're doing is delaying the release until whatever backlog the main queue has at that moment (probably none).If you're just trying to preserve the lifetime of 'object' until the first step of 'myMethod' (the first print) has finished execution, you should be able to do it by putting the last step (the second print) in a separate closure that doesn't capture the parameter, as I showed earlier.The other thing to keep in mind is that you are (effectively) tried to reason about retain counts in the logic of this code fragment, and such
Topic: Programming Languages SubTopic: Swift Tags:
Jun ’15
Synthesizing IPv6 addresses from IPv4 literals
The WWDC Your App and Next Generation Networks presentation discusses how the NSURLSession and CFNetworkAPIs in iOS 9 can synthesize IPv6 addresses when presented with IPv4 literals on an IPv6-only network.For those of us who still need to use sockets-level APIs due to existing code frameworks, is this procedure documented somewhere? Or is there any API available to just do the translation process?
Replies
2
Boosts
0
Views
2.1k
Activity
Jun ’15
Reply to On device watchOS debugging impossible
When I click Run on the [AppName] WatchKit App scheme, the status window says Running [AppName] WatchKit App on [Phone name]. It stays like that for about 45 seconds. Then it says Finished running [AppName] WatchKit App on [Phone name].Did the 'trust this computer' diaglog ever show on the watch? Unpairing and then re-pairing and restarting Xcode should have gotten you that prompt. The symptoms you are experiencing seem to indicate that this dialog was not presented after you upgraded.
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Jun ’15
Reply to Apple watch initiate call
If you're specifically referring to how to initate a call from your apple watch app code. Check out the Phone Links URL scheme reference that is now avalible is watchOS 2.0https://developer.apple.com/library/prerelease/watchos/featuredarticles/iPhoneURLScheme_Reference/PhoneLinks/PhoneLinks.html#//apple_ref/doc/uid/TP40007899-CH6-SW1
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Jun ’15
Reply to Where are the simulators for iOS Deployment target 8.3?
Hey KMT,- Note I originally dragged in a few png screen shots, but they don't actually display when I save them.When I create a new single view app in Xcode Version 6.3.2 (6D2105) the project pane above targets xcode sets the iOS Deployment Target to 8.3, and in the Scheme drop down, iOS Device is the only item available. When selecting the Drop down, there are no Simulators at all. But when I change the iOS Deploy Target to 8.2, I can then select various simulators.In my preferences I don't have 8.3 simulators, and can't download any as there are no options to do so.Do you have 8.3 Simulators? I did notice this behavior on my work Mac as well, so I figure that Apple overlooked this in the build.Perhaps I need to delete Xcode, and re-install it? Note: I actually routinely download the new version from the Dev center and not thruthe App Store.Thanks for lending your thoughts...
Replies
Boosts
Views
Activity
Jun ’15
Reply to Apple watch initiate call
Yes it is but the tel: URL scheme is currently broken on watchOS 2 beta 1.
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Jun ’15
Adding test target not work in Xcode 6
Hi,I am trying to add a test target in my current project using + sign at the bottom of the left column of Test Navigator (XCode 6.3.2). The target is created but never appear in the left column... and also, not appear in the test section of my scheme. It seem that this problem is related to my project, because it is working perfectly with template projects provided by XCode. My project document format was set to XCode 3.2, and now is set to 6.3, but it is still not working.Do you have an idea?Thanks!David
Replies
0
Boosts
0
Views
246
Activity
Jun ’15
command line compilation with Swift 2.0 targeting OS=8.3
I currently compile swift 2.0 with this:PLATFORM = 'platform=iOS Simulator,name=iPhone 6,OS=9.0'xcodebuild test -project $(PROJECT).xcodeproj -scheme $(PROJECT) -destination $(PLATFORM)but my customer is asking if I can complete back to OS=8.3. I set the Deployment target to 8.3 but when change my makefile to OS=8.3 it hangs for a while, then says it's Unable to find a destination matching the provided destion specifier:....Is it just looking for a compatible simulator or is this a larger problem?
Replies
0
Boosts
0
Views
236
Activity
Jun ’15
Inspect Bridged Signatures
Is there any way to see the translated Swift signature of an Objective-C Class imported via the Bridging Header?So e.g. given the following:// ObjC file SomeObjCClass.h @interface SomeObjCClass : NSObject - (NSString *)giveMeAStringForKey:(NSString *)key; @end // Bridging Header #import SomeObjCClass.hSwift sees this somewhat like this:// generated during compile time @objc class SomeObjCClass { func giveMeAStringForKey(key: String!) -> String! }And I'd like to inspect these generated type signatures. Any idea how to do that?
Replies
2
Boosts
0
Views
1.3k
Activity
Jun ’15
XCode 7: Coverage not working in static library project
I started a new project for a static libary today and enabled coverage in the scheme options. However when I ran some basic tests, the coverage reports only showed coverage for the test classes. Not the classes in the static library.Is this a bug or by design?
Replies
5
Boosts
0
Views
1.3k
Activity
Jun ’15
Reply to how to migrate objective c project to swift project in xcode
You have to rewrite but instead of starting from scratch:Keep both projects openComment out all of the Obj-C files/* this is how you comment out multiple lines*/Then copy and paste onto the Swift filesUn-comment out section by section of your code and see what errors you get.By reading the free Ibook (A programmers guide to Swift, or something of the like) you can see where the basic syntax differences are and ajust your code accordinglyFor any more complex code structuers that the book or you can't figure out how to translate to Swift; take those sections and ask in the fourms how to translate them and I'm sure you'll get help.
Topic: Programming Languages SubTopic: General Tags:
Replies
Boosts
Views
Activity
Jun ’15
xCode Server failed to start automated tests
Hello everyone,We encounter a problem when we try to use xCode Server to perform automated test.The destination of the automated test is the iPad 2 simulator. Also we have enabled code coverage for the corresponding scheme/targets.According to the logs for the Bot, at the end of the Build Log, it shows:xcodebuild[88163:801713] [MT] IDEBuildOperationQueueSetResourceManager: Resetting max operation to 1** TEST FAILED **None of the tests has been performed.From the console, the system log shows the following error:==== system log ===Jun 18 13:55:59: Xcode version: 6.3.2 (6D2105) (OS X SDK 13F34, iOS SDK 12F69) Jun 18 13:55:59: Server version: 4.1 (14S1092) Jun 18 13:55:59]: OS X version: 10.10.3 (14D136) Jun 18 13:56:00: common_reenable_update: UI updates were finally reenabled by application Xcode after 3.30 seconds (server forcibly re-enabled them after 1.00 seconds) Jun 18 13:56:01: inet_set_autoaddr(en1, 1) failed, Resource busy (16) Jun 18 13:57:29: process Xcode[93913] caught causing excessive wak
Replies
0
Boosts
0
Views
472
Activity
Jun ’15
Reply to Why must a modern language have Curly Braces?
Ha. 🙂Lisp/Scheme is very cool, but I don't miss functions that end like this: )))))))), or nested lets drifting rightward. And how to blend the Lisp syntax style with OO syntax style (object.method, obj.property), which is often very clean, and useful for IDE auto-completion. One call looks fine. (obj.method 1 2 3) But now chain calls on that. ((obj.method 1 2 3).method2 a b). Yuck.Robps. I first wrote obj.m e t h, but it censored it. See: obj.****. No Breaking Bad discussion here.
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Jun ’15
MailSharingSupported AppleEvent Sandbox?
I'm trying to write a simple email app to handle various AppleEvents and send those messages using another protocol. As far as I know this is accomplished by 3rd party mail apps on OSX with MailSharingSupported, MailLinkSupported, MailPageSupported, and adding a mailto URL scheme type. There is a 5th in Mail.app, MailURLShareSupported, but there doesn't seem to be any documentation.The mailto scheme is straightforward, and seems to be the most common method; the MailLink and MailPage events are covered by Technical Q&A QA1722. However, I can't seem to get MailSharing to work at all because of sandboxing. Even if I move the codesigned app to /Applications and launch it there, I still get errAEPrivilegeError/-10004 for event mail/shim in Console. No entitlements I tried to add (com.apple.security.temporary-exception.apple-events, com.apple.security.scripting-targets, etc) seemed to work, probably because these grant permissions to my app, not the Mail service trying to contact it.--editI f
Replies
0
Boosts
0
Views
760
Activity
Jun ’15
Reply to Where is the GPU Frame Capture I keep seeing in WWDC Videos?
AHA! Edit the scheme per https://developer.apple.com/library/prerelease/ios/documentation/Miscellaneous/Conceptual/MetalProgrammingGuide/Dev-Technique/Dev-Technique.html and set GPU Frame Capture to Metal. Looks like Automatic doesn't work at the moment (or at least doesn't do what it would imply).Note: I hit this when running a SpriteKit project, so it may not be a problem for those using Metal directly.
Topic: Graphics & Games SubTopic: General Tags:
Replies
Boosts
Views
Activity
Jun ’15
Reply to Weak method argument
It seemed to work for me in a playground (I got different print results more like your Obj-C example), but maybe the timing is different in an actual app.What are you actually trying to do? If we knew then perhaps we can suggest a construct that actually achieves it.Note that in your original Swift code, this: dispatch_async(dispatch_get_main_queue()) { object = nil }does basically nothing, since 'object' is going to be released by the containing scope immediately afterwards. All you're doing is delaying the release until whatever backlog the main queue has at that moment (probably none).If you're just trying to preserve the lifetime of 'object' until the first step of 'myMethod' (the first print) has finished execution, you should be able to do it by putting the last step (the second print) in a separate closure that doesn't capture the parameter, as I showed earlier.The other thing to keep in mind is that you are (effectively) tried to reason about retain counts in the logic of this code fragment, and such
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Jun ’15