Search results for

“translate scheme”

6,658 results found

Post

Replies

Boosts

Views

Activity

Reply to How to explain this "inconsistency" of parameter lists being tuples
I think fnG is nice and very useful, and fnB is the weird / irritating one that stops me from writing some nice abstractions, and my more general view on this was nicely put by Jessy above, quote:I do think that we should be able to translate between tuples and not-tuples willy-nilly, in order to reuse common parameter lists with no friction. This is one of the ways that tuples have stopped me from having to create too many structs.
Topic: Programming Languages SubTopic: Swift Tags:
Oct ’15
Reply to Function signature logic swift closure
The sad thing about it is that Swift's default rule doesn't have to be this way for interop with ObjC. There's no reason that the rules couldn't be consistent, with the bridge just adding a _ before the first argument in a method bridged from ObjC [so -(void)foo:(NSString *)bar becomes func foo(_ bar: String)], and translating things in the other direction using the same rules that are currently used when you explicitly name the first argument. There's no reason to inflict that weird pattern on every single function and method written everywhere.
Topic: Programming Languages SubTopic: Swift Tags:
Oct ’15
core audio user-space driver sandboxing preventing data interaction from another process
Hello everyone,I'm working on a coreaudio user-space hal plugin based on the examplehttps://developer.apple.com/library/mac/samplecode/AudioDriverExamples/Introduction/Intro.htmlI plan to obtain audio data from another process i.e. CFMessagePortHowever, I got the following error in console trying to create port CFMessagePortCreateLocal...sandboxd[251]: ([2597]) coreaudiod(2597) deny mach-register com.mycompnay.audioI did some googlging and came to this articleTechnical Q&A QA1811https://developer.apple.com/library/mac/qa/qa1811/_index.htmlabout adding AudioServerPlugIn_MachServices in plist but still no success.Is there anything else I need to do to make this work (like adding entitlements, code-sign) or this is not the correct approach.?I am not sure if MesssagePort mechanism works anymore under sandbox. would XPC Services be viable?update 1.I should be creating a remote port instead of a local in the audio plug-in. Having that said, with the AudioServerPlugIn_MachServices attribute in the plist. now the
0
0
1.5k
Oct ’15
Cannot create CI Bot (Xcode 7.0.1, El Capitan, OSX Server 5.0.4
Hi,I've currently updated my server system to ElCapitan and the actual version of OSX Server and Xcode. The Server is up and running and I can get to the point of selecting the target, but apparently there is no iOS platform on the Server. It says:This server cannot build for any of the platforms supported by this scheme. Available server platforms: OS X, watchOS.However xcode there is runningn and I have simulators installed for iOS 9.0 and 8.4
3
0
546
Oct ’15
Reply to Make an iOS free for other countries and not in other countries?
There are 'free' apps and 'paid' apps that sell for zero. Which is yours?You can try to get away with two same apps, but you can't pick and choose pricing country-by-country. In the end, tho, you may have difficulty getting past review with such a scheme.An IAP scheme may be a solution, but keep in mind that not all apps are available in all countries. and you haven't yet told exactly what type of app you have in this example, so....
Oct ’15
Reply to Only window of achievements, no leaderboards
Is the new leaderboard you created also a group leaderboard like your original? (grp.somename) I'm having similar trouble and the only thing I can identify where my situation might differ from those who have been successful is that my one and only leaderboard is a group leaderboard. If you think about it, the com.company.someapp.leaderboard naming scheme doesn't make much sense if the leaderboard is shared among multiple apps. I've tried all kinds of combinations with no results though. Even the original (pre-group) leaderboard ID, which was still working in code I built against the iOS 7 SDK, but which has long since been absorbed by the group leaderboard in iTunes Connect, does nothing. The description of the build setting does suggest that it's ignored if the identifier field is populated in the asset catalog. I noticed that my default value for this setting was based on my product name, which can easily have no relation to your bundle ID.
Topic: App & System Services SubTopic: Core OS Tags:
Oct ’15
Reply to Debug TVTopShelfProvider in Xcode?
I was able to debug my extension and place a breakpoint in my code to examine the TVContentItem array before it returned to the app. If you change your scheme to the TopShelfProvider Extension you created and run that, it should ask you which process to attach to. Once that is done the next time the app needs the TopShelf items it should hit your breakpoint.
Topic: App & System Services SubTopic: Core OS Tags:
Oct ’15
Reply to zoom in AVPlayerViewController in iOS9
I was able to use a swiping gesture to edit the zoom. I'm sure you could modify what I've done to get the effect you need. I added a Pan Gesture Recgonizer to my view and then in my VC I added an @IBAction. Inside that method i implemented the switch statement of the gesture recognizer. Under the .Changed I created a translation variable. I then made a do{}catch{} to lock/unlockForConfiguration() I made a new variable for the zoom change using the translation.y and multipled it by a negative and a huge number so the zoom wasn't insanely fast and swiping up zoomed in swiping down zoomed out. I then altered the device's zoom by setting the .videoZoomFactor.@IBAction func panToZoom(gesture: UIPanGestureRecognizer) { let device: AVCaptureDevice! = self.videoDeviceInput!.device switch gesture.state{ case .Ended: fallthrough case .Changed: let translation = gesture.translationInView(self.view) do{ try device.lockForConfiguration() let zoomChange = -(translation.y / 3000) device.videoZoomFactor = m
Topic: Media Technologies SubTopic: Audio Tags:
Oct ’15
Reply to TVTopShelfProvider not initialising
I've done all these things and my projects top shelf extension settings match the UIKitCatalog project's extension's settings as far as I can tell but I can only get the top shelf extension to show when I run from the extension's scheme. If I try to run from the tvOS app target's scheme, no top shelf extension shows up. This doesn't seem to be the case for the UIKitCatalog project. If I run from the UIKitCatalog target scheme, the top shelf extension shows up fine.Am I doing something wrong?
Topic: App & System Services SubTopic: Core OS Tags:
Oct ’15
Reply to What makes Xcode Server complains cannot build for any platform supported by this schema?
I'm seeing the same behavior as Ringo.OSX: 10.11 (15A284)xCode: 7.0.1 (7A1011)Server: 5.0.4 (15S2259)Server and xCode newly installed. Getting the greyed out Test: option that says: This server cannot build for any of the platforms supported by this scheme. Available server platforms: OS X, watchOS.I've got all of the simulators available installed as well.
Oct ’15
Reply to Test code class goes to rT (purple) - can't delete
This also happend to me.Prior to beginning the process I edited the scheme and checked the Test settings. There I saw both the purple and blue icons.To clear it I selected the related file in my Project Navigator. I deleted the file but selected Remove Reference rather than Move to Trash.Checking the scheme again, both the purple and blue icons were gone. Finally I readded the file to the test target.Checking the scheme, only the blue icon was there. When I re-ran the tests, no rT icon was present.Hope this helps.
Oct ’15
Workspace - not finding implicit dependencies
Using XCode 7.0.1 and OSX 10.10.5.I have a workspace with 2 projects, say A and B (projects - not frameworks or libraries). To investigate whether it all works, the main.mm of Project B (a Cocoa application) includes .h files from project A (which is a C++ command-line project)When I try to build the target of product B, I get an error that the .h files of A cannot be found. But they are in the workspace, and I can see the code.I thought these implicit dependencies were supposed to be resolved automatically. If I open project B by itself, I cannot add a dependency on project A, as project A is not a library or framework.What is the magic to make this workspace work as advertised? (Also, if this header problem can be fixed, and if I'm going to have a link problem, perhaps address that issue as well.)Further info: Project A builds and runs fine both in the workspace and stand-alone. In the workspace schemes of both projects, the text box to find implicit dependencies is checked. I realize my question h
2
0
2.4k
Oct ’15
Reply to How can I access a dictionary plist in swift?
I’m not sure what’s going on with your code. You seem to be mixing up file URLs, paths, strings and so on. For example, if you have path string you can’t create a file URL by calling:let url = NSURL(string: rootPath)you have to use:let url = NSURL(fileURLWithPath: rootPath)Likewise, you can’t get a path from a file URL using absoluteString; if it’s a valid file URL then path should do. Also, -URLByAppendingPathExtension: is for adding extensions (like .txt) not for adding path components. You want -URLByAppendingPathComponent: instead. Finally, my general advice is, choose a file representation scheme and stick with it. For example, once you’ve decided to use file URLs, use them everywhere and treat paths as an import/export format.In this case, you don’t even need to do that, because all the APIs you need to use deal with file URLs. As such, you can rewrite your code as:let docDirURL = try! NSFileManager.defaultManager().URLForDirectory(.DocumentDirectory, inDomain: .UserDomainMask, appropriateForUR
Topic: Programming Languages SubTopic: Swift Tags:
Oct ’15
Reply to How to explain this "inconsistency" of parameter lists being tuples
I think fnG is nice and very useful, and fnB is the weird / irritating one that stops me from writing some nice abstractions, and my more general view on this was nicely put by Jessy above, quote:I do think that we should be able to translate between tuples and not-tuples willy-nilly, in order to reuse common parameter lists with no friction. This is one of the ways that tuples have stopped me from having to create too many structs.
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Oct ’15
Reply to Function signature logic swift closure
The sad thing about it is that Swift's default rule doesn't have to be this way for interop with ObjC. There's no reason that the rules couldn't be consistent, with the bridge just adding a _ before the first argument in a method bridged from ObjC [so -(void)foo:(NSString *)bar becomes func foo(_ bar: String)], and translating things in the other direction using the same rules that are currently used when you explicitly name the first argument. There's no reason to inflict that weird pattern on every single function and method written everywhere.
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Oct ’15
core audio user-space driver sandboxing preventing data interaction from another process
Hello everyone,I'm working on a coreaudio user-space hal plugin based on the examplehttps://developer.apple.com/library/mac/samplecode/AudioDriverExamples/Introduction/Intro.htmlI plan to obtain audio data from another process i.e. CFMessagePortHowever, I got the following error in console trying to create port CFMessagePortCreateLocal...sandboxd[251]: ([2597]) coreaudiod(2597) deny mach-register com.mycompnay.audioI did some googlging and came to this articleTechnical Q&A QA1811https://developer.apple.com/library/mac/qa/qa1811/_index.htmlabout adding AudioServerPlugIn_MachServices in plist but still no success.Is there anything else I need to do to make this work (like adding entitlements, code-sign) or this is not the correct approach.?I am not sure if MesssagePort mechanism works anymore under sandbox. would XPC Services be viable?update 1.I should be creating a remote port instead of a local in the audio plug-in. Having that said, with the AudioServerPlugIn_MachServices attribute in the plist. now the
Replies
0
Boosts
0
Views
1.5k
Activity
Oct ’15
Cannot create CI Bot (Xcode 7.0.1, El Capitan, OSX Server 5.0.4
Hi,I've currently updated my server system to ElCapitan and the actual version of OSX Server and Xcode. The Server is up and running and I can get to the point of selecting the target, but apparently there is no iOS platform on the Server. It says:This server cannot build for any of the platforms supported by this scheme. Available server platforms: OS X, watchOS.However xcode there is runningn and I have simulators installed for iOS 9.0 and 8.4
Replies
3
Boosts
0
Views
546
Activity
Oct ’15
Reply to Make an iOS free for other countries and not in other countries?
There are 'free' apps and 'paid' apps that sell for zero. Which is yours?You can try to get away with two same apps, but you can't pick and choose pricing country-by-country. In the end, tho, you may have difficulty getting past review with such a scheme.An IAP scheme may be a solution, but keep in mind that not all apps are available in all countries. and you haven't yet told exactly what type of app you have in this example, so....
Replies
Boosts
Views
Activity
Oct ’15
Reply to Only window of achievements, no leaderboards
Is the new leaderboard you created also a group leaderboard like your original? (grp.somename) I'm having similar trouble and the only thing I can identify where my situation might differ from those who have been successful is that my one and only leaderboard is a group leaderboard. If you think about it, the com.company.someapp.leaderboard naming scheme doesn't make much sense if the leaderboard is shared among multiple apps. I've tried all kinds of combinations with no results though. Even the original (pre-group) leaderboard ID, which was still working in code I built against the iOS 7 SDK, but which has long since been absorbed by the group leaderboard in iTunes Connect, does nothing. The description of the build setting does suggest that it's ignored if the identifier field is populated in the asset catalog. I noticed that my default value for this setting was based on my product name, which can easily have no relation to your bundle ID.
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Oct ’15
Reply to Debug TVTopShelfProvider in Xcode?
I was able to debug my extension and place a breakpoint in my code to examine the TVContentItem array before it returned to the app. If you change your scheme to the TopShelfProvider Extension you created and run that, it should ask you which process to attach to. Once that is done the next time the app needs the TopShelf items it should hit your breakpoint.
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Oct ’15
Reply to zoom in AVPlayerViewController in iOS9
I was able to use a swiping gesture to edit the zoom. I'm sure you could modify what I've done to get the effect you need. I added a Pan Gesture Recgonizer to my view and then in my VC I added an @IBAction. Inside that method i implemented the switch statement of the gesture recognizer. Under the .Changed I created a translation variable. I then made a do{}catch{} to lock/unlockForConfiguration() I made a new variable for the zoom change using the translation.y and multipled it by a negative and a huge number so the zoom wasn't insanely fast and swiping up zoomed in swiping down zoomed out. I then altered the device's zoom by setting the .videoZoomFactor.@IBAction func panToZoom(gesture: UIPanGestureRecognizer) { let device: AVCaptureDevice! = self.videoDeviceInput!.device switch gesture.state{ case .Ended: fallthrough case .Changed: let translation = gesture.translationInView(self.view) do{ try device.lockForConfiguration() let zoomChange = -(translation.y / 3000) device.videoZoomFactor = m
Topic: Media Technologies SubTopic: Audio Tags:
Replies
Boosts
Views
Activity
Oct ’15
Reply to Error trying to build watchOS 2 app in Xcode 7
I've just fixed it like so: xcodebuild -project MyProject / -workspace MyWorkspace -scheme MyScheme -destination 'name=iPhone 6s' -enableCodeCoverage YES clean test | xcpretty --color --report junit // for cleaner report styling
Replies
Boosts
Views
Activity
Oct ’15
Reply to TVTopShelfProvider not initialising
I've done all these things and my projects top shelf extension settings match the UIKitCatalog project's extension's settings as far as I can tell but I can only get the top shelf extension to show when I run from the extension's scheme. If I try to run from the tvOS app target's scheme, no top shelf extension shows up. This doesn't seem to be the case for the UIKitCatalog project. If I run from the UIKitCatalog target scheme, the top shelf extension shows up fine.Am I doing something wrong?
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Oct ’15
Reply to What makes Xcode Server complains cannot build for any platform supported by this schema?
I'm seeing the same behavior as Ringo.OSX: 10.11 (15A284)xCode: 7.0.1 (7A1011)Server: 5.0.4 (15S2259)Server and xCode newly installed. Getting the greyed out Test: option that says: This server cannot build for any of the platforms supported by this scheme. Available server platforms: OS X, watchOS.I've got all of the simulators available installed as well.
Replies
Boosts
Views
Activity
Oct ’15
Reply to Test code class goes to rT (purple) - can't delete
This also happend to me.Prior to beginning the process I edited the scheme and checked the Test settings. There I saw both the purple and blue icons.To clear it I selected the related file in my Project Navigator. I deleted the file but selected Remove Reference rather than Move to Trash.Checking the scheme again, both the purple and blue icons were gone. Finally I readded the file to the test target.Checking the scheme, only the blue icon was there. When I re-ran the tests, no rT icon was present.Hope this helps.
Replies
Boosts
Views
Activity
Oct ’15
photos-redirect://
We have an app use for opening Photos.app. The photos-redirect:// url scheme will do this, but as far as I know, it's undocumented. Would using this url scheme be grounds for app rejection?
Replies
0
Boosts
0
Views
2.4k
Activity
Oct ’15
Workspace - not finding implicit dependencies
Using XCode 7.0.1 and OSX 10.10.5.I have a workspace with 2 projects, say A and B (projects - not frameworks or libraries). To investigate whether it all works, the main.mm of Project B (a Cocoa application) includes .h files from project A (which is a C++ command-line project)When I try to build the target of product B, I get an error that the .h files of A cannot be found. But they are in the workspace, and I can see the code.I thought these implicit dependencies were supposed to be resolved automatically. If I open project B by itself, I cannot add a dependency on project A, as project A is not a library or framework.What is the magic to make this workspace work as advertised? (Also, if this header problem can be fixed, and if I'm going to have a link problem, perhaps address that issue as well.)Further info: Project A builds and runs fine both in the workspace and stand-alone. In the workspace schemes of both projects, the text box to find implicit dependencies is checked. I realize my question h
Replies
2
Boosts
0
Views
2.4k
Activity
Oct ’15
Reply to How can I access a dictionary plist in swift?
I’m not sure what’s going on with your code. You seem to be mixing up file URLs, paths, strings and so on. For example, if you have path string you can’t create a file URL by calling:let url = NSURL(string: rootPath)you have to use:let url = NSURL(fileURLWithPath: rootPath)Likewise, you can’t get a path from a file URL using absoluteString; if it’s a valid file URL then path should do. Also, -URLByAppendingPathExtension: is for adding extensions (like .txt) not for adding path components. You want -URLByAppendingPathComponent: instead. Finally, my general advice is, choose a file representation scheme and stick with it. For example, once you’ve decided to use file URLs, use them everywhere and treat paths as an import/export format.In this case, you don’t even need to do that, because all the APIs you need to use deal with file URLs. As such, you can rewrite your code as:let docDirURL = try! NSFileManager.defaultManager().URLForDirectory(.DocumentDirectory, inDomain: .UserDomainMask, appropriateForUR
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Oct ’15