Search results for

“translate scheme”

6,658 results found

Post

Replies

Boosts

Views

Activity

Reply to Can you suggest hardware for Xcode 7?
Xcode could care less. Any Mac sold in the last 2 years or so is more than capable. But in the end, it's wise to remember that a dev rarely only runs Xcode. Safari, text, audio, image and video editors...those are where the load comes from.Max the physical ram (soldered on now in many new macs), determine the maximum harddrive you'll need, then double it (and while SSDs run faster, they tend to also fill up faster, making free space a juggling act), add a backup scheme and consider using additional monitors.
Nov ’15
pf and UDP source port 500
Hello,While troubleshooting racoon's behavior with multiple clients behind a same NAT gateway, I was experimenting with pf's nat capabilities.Upon that occasion, I noticed that UDP source port 500 is never translated by pf.Looking in xnu-2782.40.9, I found this one at line 3235 of bsd/net/pf.c: /--- Never float IKE source port ---*/ if (ntohs(sxport->port) == PF_IKE_PORT) { nxport->port = sxport->port; return (0); }According to the surrounding code, this is the only exception for UDP packets, and it is a hard-coded one.Is that code (pf.c) the one in use for compiling the kernel?If yes, what's the rationale for such an hardcoded exception?TIA,Axel
2
0
224
Nov ’15
need help with deciding languages to support
I am localizing my app. I have learnt the entire process. I got some 571 words in my app and whether I use google translator kit or some other service, localization isn't inexpensive!My problem is I am having a hard time finding statistics which would tell me the most important languages to support. Can someone tell me if there are any official Apple statistics on this? Like percentage revenue distribution based on countries?For example, I know that apart from the base english... chinese, arabic and european languages are a must for wider acceptance of the app. But then which european languages?So basically I need some initial perspective on which languages are a must and which are good to go with.Maybe if someone can tell me a credible source to rely on in making such decisions.Thanks.Neerav
2
0
861
Nov ’15
Reply to need help with deciding languages to support
We can support the obvious, simply by numbers...Most Widely Spoken Languages in the WorldLanguage ~ Approx. number of speakers1. Chinese 1,197,000,0002. Spanish 414,000,0003. English 335,000,0004. Hindi 260,000,000...but for my apps, I'm doing Chinese (both T & S) and the 'gateway' languages English, Spanish and French, at a minimum.A “gateway language” is a language of wider communication through which second-language speakers of that language can gain access to content and translate it into their own language. For devs, this means not having to go nuts supporting tons of languages, otherwise.I then track sales and add others based on activity in various locales and feedback/requests from users.As for Apple's stats, I've only seen hardware sales, and we all know how many languages they support. Stats for app sales would seem to vary depending on the type of app being tracked as well - what categories do you publish in now?
Nov ’15
Add metadata to .mov
I tried to translate the code of AVTimedAnnotationWriter from Objective-C to Swfit. Everything works but when I'm writing the metadata part, it fails.I noticed that when the mediaType = meta (line13). It will occur one more copyNextTimedMetadataGroup(). Any idea?func startReadingAndWritingWithCompletionHandler(localCompletionHandler: dispatch_block_t) { self.completionHandler = localCompletionHandler assetWriterInput?.requestMediaDataWhenReadyOnQueue(serializationQueue!, usingBlock: { () -> Void in if(self.finished!) { return } var completedOrFailed: Bool = false / while ((self.assetWriterInput?.readyForMoreMediaData)! && !completedOrFailed) { var sampleBuffer: CMSampleBufferRef? = nil var metadataGroup: AVTimedMetadataGroup? = nil if((self.assetWriterInput?.mediaType)! == meta) { metadataGroup = self.metadataSampleProvider?.copyNextTimedMetadataGroup() } else { sampleBuffer = self.sampleProvider!.copyNextSampleBuffer() } if (sampleBuffer != nil) { let success: Bool = (self.assetWriterInpu
7
0
1.3k
Dec ’15
xfail in XCTest or scheme?
I am wondering if Xcode has a capability to describe that certain tests are expected to fail.I searched the web with keyword mixes like xcode, xfail, expect to fail, xctest, test scheme and so on. None got what I want and I came up here, the dev forum.I am writing some test utility for my classes. So, the goal is to fail when the test utility detects anything wrong.The test codes for the test utility are written purposely to fail. And I would like to take those failures as successes of the test.I may add up some more codes in the test utility to flip the assert expressions not to fail for xfail purpose. However, it may introduce unexpected bugs and I don't want to take the additional risk (and unnecessary risk if xfail is supported in xcode)I appreciate any feedbacks. Thanks!dpdo
1
0
377
Dec ’15
Reply to Xcode wont run WatchKit App
I find debugging on the watch painful, however it does work for me.I think there were some tips posted somewhere, but I forget where.Here's some things to do if you haven't yet (try these in order once to see if it helps):1) Use the iphone watch app to uninstall your app from the watch2) shut down xcode (I'm surprised how many times xcode seems to have lost it's mind and can't debug successfully. Yes, this is with 7.1)3) power cycle the phone and watch (hold side button and do a slide to power off on watch, restart. You have to remove it from the charge cable to do this)4) Bring everything back up5) Place watch on charger cable (This isn't required, but it seems like the watch goes in to lower power mode when off the charger, or something, and you'll have much less success debugging with it off the cable.)6) Pick your Scheme for phone plus watch for debug7) Set breakpoints (I assume you have these already, but add some if not.)8) Run from Xcode9) take a break and wait (especially if you try to debug
Topic: App & System Services SubTopic: General Tags:
Dec ’15
Reply to Universal Deep Linking with redirects
Hm, can you elaborate a little bit on that answer?After some more testing I have come to realise that everything works smoothly if the redirect occurs within Safari, but not when it starts in a third party app. For instance, opening one of our promotional emails from gmail, mobile-website (in Safari), sends the user directly to our app, even though the universal link is wrapped in our emailing system's own redirect scheme. However, when opening the promotional email from the Mails app, it directs the user to my mobile site instead of the app.Same goes for paid search links and display campaign links: works when the redirect is started within Safari, does not work when started from a third party app.
Topic: App & System Services SubTopic: General Tags:
Dec ’15
Reply to Get metadata description format identifier
Also, I tried to turn it as NSArray, but fails.I'm under way of translating the same sample code into Swift, so, I'm not sure, but does this not work? let metadataTracks = asset.tracksWithMediaType(AVMediaTypeMetadata) for track in metadataTracks { for formatDescription in track.formatDescriptions as! [CMFormatDescription] { if let identifiers = CMMetadataFormatDescriptionGetIdentifiers(formatDescription) as? NSArray where identifiers.containsObject(AVMetadataIdentifierQuickTimeMetadataLocationISO6709) { locationTrack = track break } } }
Topic: Programming Languages SubTopic: Swift Tags:
Dec ’15
SPIR-V support
I know that these forums are much less active than they should be, but I am still posting this in the hope that some people (and hopefully someone from Apple) see it. I am also sure that I am not the first one to think of it, but I would like to raise the awareness on this topic Now that Khronos has released SPIR-V specification, we have a cross-platform language-agnostic high-level bytecode for specifying shaders. I believe that it would be a big benefit for Metal to have a SPIR-V interface. I am sure that the Metal IR already has a high degree of resemblance to SPIR-V and the translation between two levels can be done in a fairly simple way (or ideally, Metal could adopt SPIR-V itself). Benefits are as follows:1. It would be much easier to port between Metal and other APIs (like OpenGL or Vulkan), simplifying cross-plaftorm development2. Apple developers would get access to a vast shader library and third-party tools3. A stable IR promotes better quality software
9
0
4.7k
Dec ’15
URL for linking to specific Settings.app screen
Hi,I would like a button in my app to take the user directly to the settings app. To be more precise: Settings > Safari > Content Blockers.I've been able to link as deep as 'Safari', but not as deep as 'Contect Blockers'.This is what my code look like now ( does work ):UIApplication.sharedApplication().openURL (NSURL(string:prefs:root=SAFARI)!)What I tried ( does not work ):UIApplication.sharedApplication().openURL (NSURL(string:prefs:root=SAFARI&path=ContentBlockers)!)UIApplication.sharedApplication().openURL (NSURL(string:prefs:root=SAFARI&path=CONTENT_BLOCKERS)!)This SO threat lists a few possible URLs for linking to defferent settings screens:http://stackoverflow.com/questions/8246070/ios-launching-settings-restrictions-url-scheme/8246814#8246814Is there an official list of URLs? If not, has anyone found the right URL for linking directly to the Content Blockers screen?Thanks! Jonatan
0
0
7.8k
Dec ’15
indoor
I have dowloaded the sample code fromhttps://developer.apple.com/library/prerelease/ios/samplecode/footprint/Introduction/Intro.htmland was able to use it for my purpose. The question I cannot resolve is how to make the inverse of MKMapPointFromPDFPoint (AAPLCoordinateConverter).tried diferent approachs and none of them give consistent resultsThe code base takes the touch in mapview to get a mkmappoint and tries to translate it to pdf points. Any help would be great!// getting the touch UITapGestureRecognizer *tgr = [[UITapGestureRecognizer alloc]initWithTarget:self action:@selector(handleGesture2:)]; tgr.numberOfTapsRequired = 1; tgr.numberOfTouchesRequired = 1; [self.mapView addGestureRecognizer:tgr];- (void)handleGesture2:(UIGestureRecognizer *)gestureRecognizer{ if (gestureRecognizer.state != UIGestureRecognizerStateEnded) return; CGPoint touchPoint = [gestureRecognizer locationInView:self.mapView]; CLLocationCoordinate2D touchMapCoordinate = [self.mapView convertPoint:touchPoint toCoordinateFrom
0
0
168
Dec ’15
Reply to MTLTextureUsageShaderWrite & MetalKit
I have worked around this issue by disabling GPU Frame Capture in the application's Scheme. Find that setting under Edit Scheme > Run > Options > GPU Frame Capture. Set it to Disabled.
Topic: Graphics & Games SubTopic: General Tags:
Replies
Boosts
Views
Activity
Nov ’15
Reply to Can you suggest hardware for Xcode 7?
Xcode could care less. Any Mac sold in the last 2 years or so is more than capable. But in the end, it's wise to remember that a dev rarely only runs Xcode. Safari, text, audio, image and video editors...those are where the load comes from.Max the physical ram (soldered on now in many new macs), determine the maximum harddrive you'll need, then double it (and while SSDs run faster, they tend to also fill up faster, making free space a juggling act), add a backup scheme and consider using additional monitors.
Replies
Boosts
Views
Activity
Nov ’15
pf and UDP source port 500
Hello,While troubleshooting racoon's behavior with multiple clients behind a same NAT gateway, I was experimenting with pf's nat capabilities.Upon that occasion, I noticed that UDP source port 500 is never translated by pf.Looking in xnu-2782.40.9, I found this one at line 3235 of bsd/net/pf.c: /--- Never float IKE source port ---*/ if (ntohs(sxport->port) == PF_IKE_PORT) { nxport->port = sxport->port; return (0); }According to the surrounding code, this is the only exception for UDP packets, and it is a hard-coded one.Is that code (pf.c) the one in use for compiling the kernel?If yes, what's the rationale for such an hardcoded exception?TIA,Axel
Replies
2
Boosts
0
Views
224
Activity
Nov ’15
need help with deciding languages to support
I am localizing my app. I have learnt the entire process. I got some 571 words in my app and whether I use google translator kit or some other service, localization isn't inexpensive!My problem is I am having a hard time finding statistics which would tell me the most important languages to support. Can someone tell me if there are any official Apple statistics on this? Like percentage revenue distribution based on countries?For example, I know that apart from the base english... chinese, arabic and european languages are a must for wider acceptance of the app. But then which european languages?So basically I need some initial perspective on which languages are a must and which are good to go with.Maybe if someone can tell me a credible source to rely on in making such decisions.Thanks.Neerav
Replies
2
Boosts
0
Views
861
Activity
Nov ’15
xcodebuild test only one class or testmethod
Hi!Does anybody know some way to run only one testclass or testmethod by console? Can i create improvement for apple? 🙂Maybe exists ability to dynamicly creating schemes, which will be used like xcodebuild test -project MyAppProject.xcodeproj -scheme FirstClassTest'
Replies
1
Boosts
0
Views
202
Activity
Nov ’15
Reply to need help with deciding languages to support
We can support the obvious, simply by numbers...Most Widely Spoken Languages in the WorldLanguage ~ Approx. number of speakers1. Chinese 1,197,000,0002. Spanish 414,000,0003. English 335,000,0004. Hindi 260,000,000...but for my apps, I'm doing Chinese (both T & S) and the 'gateway' languages English, Spanish and French, at a minimum.A “gateway language” is a language of wider communication through which second-language speakers of that language can gain access to content and translate it into their own language. For devs, this means not having to go nuts supporting tons of languages, otherwise.I then track sales and add others based on activity in various locales and feedback/requests from users.As for Apple's stats, I've only seen hardware sales, and we all know how many languages they support. Stats for app sales would seem to vary depending on the type of app being tracked as well - what categories do you publish in now?
Replies
Boosts
Views
Activity
Nov ’15
Add metadata to .mov
I tried to translate the code of AVTimedAnnotationWriter from Objective-C to Swfit. Everything works but when I'm writing the metadata part, it fails.I noticed that when the mediaType = meta (line13). It will occur one more copyNextTimedMetadataGroup(). Any idea?func startReadingAndWritingWithCompletionHandler(localCompletionHandler: dispatch_block_t) { self.completionHandler = localCompletionHandler assetWriterInput?.requestMediaDataWhenReadyOnQueue(serializationQueue!, usingBlock: { () -> Void in if(self.finished!) { return } var completedOrFailed: Bool = false / while ((self.assetWriterInput?.readyForMoreMediaData)! && !completedOrFailed) { var sampleBuffer: CMSampleBufferRef? = nil var metadataGroup: AVTimedMetadataGroup? = nil if((self.assetWriterInput?.mediaType)! == meta) { metadataGroup = self.metadataSampleProvider?.copyNextTimedMetadataGroup() } else { sampleBuffer = self.sampleProvider!.copyNextSampleBuffer() } if (sampleBuffer != nil) { let success: Bool = (self.assetWriterInpu
Replies
7
Boosts
0
Views
1.3k
Activity
Dec ’15
Reply to Xcode crash when examining code coverage data
Same with me. Almost empty project 7.1.1 However,go to Product > Scheme > Edit Scheme ...Go to 'Test' on the left and then in the panel check the box 'Gather Coverage data'No more crashes. That being said, crazy that it just crashes like that, everytime.
Replies
Boosts
Views
Activity
Dec ’15
xfail in XCTest or scheme?
I am wondering if Xcode has a capability to describe that certain tests are expected to fail.I searched the web with keyword mixes like xcode, xfail, expect to fail, xctest, test scheme and so on. None got what I want and I came up here, the dev forum.I am writing some test utility for my classes. So, the goal is to fail when the test utility detects anything wrong.The test codes for the test utility are written purposely to fail. And I would like to take those failures as successes of the test.I may add up some more codes in the test utility to flip the assert expressions not to fail for xfail purpose. However, it may introduce unexpected bugs and I don't want to take the additional risk (and unnecessary risk if xfail is supported in xcode)I appreciate any feedbacks. Thanks!dpdo
Replies
1
Boosts
0
Views
377
Activity
Dec ’15
Reply to Xcode wont run WatchKit App
I find debugging on the watch painful, however it does work for me.I think there were some tips posted somewhere, but I forget where.Here's some things to do if you haven't yet (try these in order once to see if it helps):1) Use the iphone watch app to uninstall your app from the watch2) shut down xcode (I'm surprised how many times xcode seems to have lost it's mind and can't debug successfully. Yes, this is with 7.1)3) power cycle the phone and watch (hold side button and do a slide to power off on watch, restart. You have to remove it from the charge cable to do this)4) Bring everything back up5) Place watch on charger cable (This isn't required, but it seems like the watch goes in to lower power mode when off the charger, or something, and you'll have much less success debugging with it off the cable.)6) Pick your Scheme for phone plus watch for debug7) Set breakpoints (I assume you have these already, but add some if not.)8) Run from Xcode9) take a break and wait (especially if you try to debug
Topic: App & System Services SubTopic: General Tags:
Replies
Boosts
Views
Activity
Dec ’15
Reply to Universal Deep Linking with redirects
Hm, can you elaborate a little bit on that answer?After some more testing I have come to realise that everything works smoothly if the redirect occurs within Safari, but not when it starts in a third party app. For instance, opening one of our promotional emails from gmail, mobile-website (in Safari), sends the user directly to our app, even though the universal link is wrapped in our emailing system's own redirect scheme. However, when opening the promotional email from the Mails app, it directs the user to my mobile site instead of the app.Same goes for paid search links and display campaign links: works when the redirect is started within Safari, does not work when started from a third party app.
Topic: App & System Services SubTopic: General Tags:
Replies
Boosts
Views
Activity
Dec ’15
Reply to Get metadata description format identifier
Also, I tried to turn it as NSArray, but fails.I'm under way of translating the same sample code into Swift, so, I'm not sure, but does this not work? let metadataTracks = asset.tracksWithMediaType(AVMediaTypeMetadata) for track in metadataTracks { for formatDescription in track.formatDescriptions as! [CMFormatDescription] { if let identifiers = CMMetadataFormatDescriptionGetIdentifiers(formatDescription) as? NSArray where identifiers.containsObject(AVMetadataIdentifierQuickTimeMetadataLocationISO6709) { locationTrack = track break } } }
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Dec ’15
SPIR-V support
I know that these forums are much less active than they should be, but I am still posting this in the hope that some people (and hopefully someone from Apple) see it. I am also sure that I am not the first one to think of it, but I would like to raise the awareness on this topic Now that Khronos has released SPIR-V specification, we have a cross-platform language-agnostic high-level bytecode for specifying shaders. I believe that it would be a big benefit for Metal to have a SPIR-V interface. I am sure that the Metal IR already has a high degree of resemblance to SPIR-V and the translation between two levels can be done in a fairly simple way (or ideally, Metal could adopt SPIR-V itself). Benefits are as follows:1. It would be much easier to port between Metal and other APIs (like OpenGL or Vulkan), simplifying cross-plaftorm development2. Apple developers would get access to a vast shader library and third-party tools3. A stable IR promotes better quality software
Replies
9
Boosts
0
Views
4.7k
Activity
Dec ’15
URL for linking to specific Settings.app screen
Hi,I would like a button in my app to take the user directly to the settings app. To be more precise: Settings > Safari > Content Blockers.I've been able to link as deep as 'Safari', but not as deep as 'Contect Blockers'.This is what my code look like now ( does work ):UIApplication.sharedApplication().openURL (NSURL(string:prefs:root=SAFARI)!)What I tried ( does not work ):UIApplication.sharedApplication().openURL (NSURL(string:prefs:root=SAFARI&path=ContentBlockers)!)UIApplication.sharedApplication().openURL (NSURL(string:prefs:root=SAFARI&path=CONTENT_BLOCKERS)!)This SO threat lists a few possible URLs for linking to defferent settings screens:http://stackoverflow.com/questions/8246070/ios-launching-settings-restrictions-url-scheme/8246814#8246814Is there an official list of URLs? If not, has anyone found the right URL for linking directly to the Content Blockers screen?Thanks! Jonatan
Replies
0
Boosts
0
Views
7.8k
Activity
Dec ’15
indoor
I have dowloaded the sample code fromhttps://developer.apple.com/library/prerelease/ios/samplecode/footprint/Introduction/Intro.htmland was able to use it for my purpose. The question I cannot resolve is how to make the inverse of MKMapPointFromPDFPoint (AAPLCoordinateConverter).tried diferent approachs and none of them give consistent resultsThe code base takes the touch in mapview to get a mkmappoint and tries to translate it to pdf points. Any help would be great!// getting the touch UITapGestureRecognizer *tgr = [[UITapGestureRecognizer alloc]initWithTarget:self action:@selector(handleGesture2:)]; tgr.numberOfTapsRequired = 1; tgr.numberOfTouchesRequired = 1; [self.mapView addGestureRecognizer:tgr];- (void)handleGesture2:(UIGestureRecognizer *)gestureRecognizer{ if (gestureRecognizer.state != UIGestureRecognizerStateEnded) return; CGPoint touchPoint = [gestureRecognizer locationInView:self.mapView]; CLLocationCoordinate2D touchMapCoordinate = [self.mapView convertPoint:touchPoint toCoordinateFrom
Replies
0
Boosts
0
Views
168
Activity
Dec ’15