Search results for

“translate scheme”

6,670 results found

Post

Replies

Boosts

Views

Activity

Frequent network failures with OS X 10.11 Beta
I've noticed that my Mac will intermittently stop performing network request. I can see these error message in Console around the time when I notice network issues.6/11/15 10:31:20.379 AM networkd[161]: -[NETProxyLookup copyURL] invalid URL scheme '5223' 6/11/15 10:32:29.139 AM networkd[161]: -[NETProxyLookup copyURL] invalid URL scheme '5223' 6/11/15 10:33:39.135 AM networkd[161]: -[NETProxyLookup copyURL] invalid URL scheme '5223' 6/11/15 10:33:47.990 AM mDNSResponder[85]: nw_interface_get_agents SIOCGIFAGENTIDS failed (errno = 6) 6/11/15 10:33:47.990 AM mDNSResponder[85]: nw_interface_get_agents SIOCGIFAGENTIDS failed (errno = 6) 6/11/15 10:34:54.126 AM networkd[161]: -[NETProxyLookup copyURL] invalid URL scheme '5223' 6/11/15 10:35:57.161 AM mDNSResponder[85]: nw_interface_get_agents SIOCGIFAGENTIDS failed (errno = 6) 6/11/15 10:35:57.161 AM mDNSResponder[85]: nw_interface_get_agents SIOCGIFAGENTIDS failed (errno = 6)Anyone else with the Beta experiencing this? If I boo
1
0
382
Jun ’15
Anyone gotten coverage to work in xc7wwdc in a non-trivial app?
I can get code coverage results inside of xcode with a new toy project. When I try with an existing app with tests, the tests are run (I see output, breakpoints hit), but the coverage window in the report navigator says No Coverage Data and nothing shows in the source editor sidebars. The Gather Coverage Data box is ticked in the scheme.
2
0
848
Jun ’15
Notes from Your App and Next Generation Networks session
Two parts to session:Transitioning to IPv6-only networksReducing Delays in NetworkingTransitioning to IPv6-only networksMore mobile carriers are moving to IPv6 networksIn Ye Olde Days, cellular data networks used IPv4. As IPv4 addresses ran out, NAT was introduced to make IPs go further.To fix the long-term problem, mobile carriers are now moving to IPv6. But they're also having to support IPv4 with NAT.The carriers want to drop IPv4 with NAT, so they're deploying DNS64/NAT64 to handle translation between IPv4 and IPv6 networks.DNS64 synthesizes an IPv6 address for an IPv4-only serverNAT64 performs IPv6 to IPv4 address translationApp Store apps need to be IPv6 ready - It will be an app submission requirement later in 2015.Enabling IPv6 test network from a Mac1. Boot OS X 10.112. Open System Preferences3. Option-click on the Sharing preference pane4. Option-click on Internet Sharing5. A Create IPv6 Only Network checkbox will appear6. Check Create IPv6 Only Network (this may also be labeled Create NAT6
12
0
16k
Jun ’15
Can not get CMAccelerometerData
I'm writing a code for WatchOS2 extension that uses CMAccelerometerData.Built with no error, running correct scheme, installed in Apple Watch device, but nothing happend.Can not even stop breakpoint on first line.Something missing ?@implementation ExtensionDelegate- (void)applicationDidFinishLaunching { motionManager = [[CMMotionManager alloc] init]; motionManager.accelerometerUpdateInterval = 0.1; if (motionManager.accelerometerAvailable) { [motionManager startAccelerometerUpdatesToQueue:[NSOperationQueue currentQueue] withHandler:^(CMAccelerometerData *accelerometerData, NSError *error) { double xx = accelerometerData.acceleration.x; NSLog(@%lf, xx); }]; }}@end
0
0
260
Jun ’15
Code coverage creating Framework
Hi everyone,I'm having a doubt or an issue creating a simple CocoaTouch Framwork and measuring the code coverage.For test only purposes I just created one struct and one unit testing file. Before testing, in the scheme's Test phase I've already checked the Gather Coverage Data checkbox. All tests succeed but the code coverage for the Framework still 0% within the Report Navigator > Coverage tab. I just can get some coverage checking the Show Test Bundles option.Am I missing something? Do I have to include some code that uses the Framework to check the coverage?
3
0
1.6k
Jun ’15
Reply to How to pass data from Customer App to Admin App
I think the standard approach is a custom URL scheme if your data is short enough to fit in a URL (not sure what limits, if any, there are on the length). There's also the keychain with the same sort of limit - it's meant for small bits of info like passwords.I believe as of iOS 8 you can now have a shared app container so apps from the same developer can share data. One app could write a file and the other app could read it. That, in combination with the URL scheme, may be a more flexible approach.
Topic: Programming Languages SubTopic: General Tags:
Jun ’15
Reply to WCSession sendMessage returning errors (simulator)
I found the answer in session 108 - Building Watch Apps, roughly 30 minutes in.Run the app with the Phone + Simulator scheme. This will start the watch sim.Switch the scheme to the Phone scheme associated with it (so, if you were using iPhone 6 + 38mm Watch, use iPhone 6)Hold down control and click the run button. This will run the scheme without rebuilding (and stopping the watch sim).Now you'll have both running at the same time. I've noticed that sometimes on step 3, the watch app will go to the home screen. It's still running though, start it back up and Connectivity will still work.
Topic: App & System Services SubTopic: Core OS Tags:
Jun ’15
Reply to In WatchOS 2, there's no way to position views arbitrarily (possibly resulting in overlap) and no way to have views with custom rendering (e.g., by overriding a draw method). Why?
The API isn't quite as native as a lot of us were hoping, but there are ways around some of the limitations. For example custom drawing is possible by drawing an image and loading it into an image control, which is sufficient for a lot of situations. Arbitrary positioning of views is another matter with the flow approach to layout, but you might be able to do something with a bit of creativity. For games I'd imagine it's more a case of what can I do with these limitations rather than how do I do what I would like to do. The video on layout and animations would probably be a good start to see what is possible:https://developer.apple.com/videos/wwdc/2015/?id=216As someone who spent months on a version 1 watch app I was actually quite happy to see how version 2 apps work. I was worried that I would have to rewrite a lot of code if the layout scheme was changed, but the way Apple have designed it means that this is hopefully not the case. I'd imagine that a future version of watchOS will allow arbitrary
Topic: App & System Services SubTopic: Core OS Tags:
Jun ’15
how to reset/restart an animation and have it appear continuous?
So, I am fairly new to iOS programming, and have inherited a project from a former coworker. We are building an app that contains a gauge UI. When data comes in, we want to smoothly rotate our layer (which is a needle image) from the current angle to a new target angle. Here is what we have, which worked well with slow data: -(void) MoveNeedleToAngle:(float) target { static float old_Value = 0.0; CABasicAnimation *rotateCurrentPressureTick = [CABasicAnimation animationWithKeyPath:@transform.rotation); [rotateCurrentPressureTick setDelegate:self]; rotateCurrentPressureTick.fromValue = [NSSNumber numberWithFloat:old_value/57.2958]; rotateCurrentPressureTick.removedOnCompletion=NO; rotateCurrentPressureTick.fillMode=kCAFillModeForwards; rotateCurrentPressureTick.toValue=[NSSNumber numberWithFloat:target/57.2958]; rotateCurrentPressureTick.duration=3; // constant 3 second sweep [imageView_Needle.layer addAnimation:rotateCurrentPressureTick forKey:@rotateTick]; old_Value = target; }The problem is we have a new dat
2
0
4.4k
Jun ’15
Novice Apple Developer
So, I've been in the Apple Developer community for quite some time, and I love looking at new technologies before they come to the public. The one thing I want to do eventually is develop a keyboard for iOS that can immediately translate what you type so you don't have to go to an external translator and type it. The problem is I have a horrible time retaining the code to make most anything, and have been able to make website with a little code knowledge, but not completely.What's the best place for a novice like me to learn?
1
0
183
Jun ’15
Reply to Swift nested for loops cause performance hit
If you change the linelet objects = world!.childrentolet objects = Array(world!.children)you should get some speedup. With 1600 nodes on a couple of years old MacBook Pro I got 0.34 seconds with your code and 0.13 seconds with my change. With a simple collision detection thrown in, the time increased to 0.18 seconds. I don't know how this translates to your iPad, but it should at least be a little bit faster.
Topic: Programming Languages SubTopic: Swift Tags:
Jun ’15
Reply to NSURL StringwithContentsofURL
Search these forums for App Transport Security. iOS 9 now silently translates HTTP URLs to HTTPS and enforces current best practice security levels (key sizes etc.) unless you opt out in your plist. Longer term, you should update your server to support SSL with good security. Short term you can add a plist key to get back to the old behaviour.
Topic: App & System Services SubTopic: Core OS Tags:
Jun ’15
Swift 2 error handling cannot express optional results when bridging from Objective-C
I depend on a legacy C++ library for which I need to build a bridge into Swift. The API is similar to a standard XML DOM and a database-like queries at the same time. Querying for a property of an object can return a value (e.g. Int), absence of a value (nil) or an error (something went wrong). Ideally I would like to have a Swift call like this:func getInt() throws -> NSNumber?It seems, it is not possible with the current Swift 2 compiler since the Objective-C method-(NSNumber*)getIntWithError:(NSError**)errorwill translate intofunc getInt() throws -> NSNUmberIt doesn't seem to be possible to express that the result is actually optional. I have already posted a bug report, however may someone have an idea for a workaround?Thanks a lot in advance!
4
0
575
Jun ’15
Frequent network failures with OS X 10.11 Beta
I've noticed that my Mac will intermittently stop performing network request. I can see these error message in Console around the time when I notice network issues.6/11/15 10:31:20.379 AM networkd[161]: -[NETProxyLookup copyURL] invalid URL scheme '5223' 6/11/15 10:32:29.139 AM networkd[161]: -[NETProxyLookup copyURL] invalid URL scheme '5223' 6/11/15 10:33:39.135 AM networkd[161]: -[NETProxyLookup copyURL] invalid URL scheme '5223' 6/11/15 10:33:47.990 AM mDNSResponder[85]: nw_interface_get_agents SIOCGIFAGENTIDS failed (errno = 6) 6/11/15 10:33:47.990 AM mDNSResponder[85]: nw_interface_get_agents SIOCGIFAGENTIDS failed (errno = 6) 6/11/15 10:34:54.126 AM networkd[161]: -[NETProxyLookup copyURL] invalid URL scheme '5223' 6/11/15 10:35:57.161 AM mDNSResponder[85]: nw_interface_get_agents SIOCGIFAGENTIDS failed (errno = 6) 6/11/15 10:35:57.161 AM mDNSResponder[85]: nw_interface_get_agents SIOCGIFAGENTIDS failed (errno = 6)Anyone else with the Beta experiencing this? If I boo
Replies
1
Boosts
0
Views
382
Activity
Jun ’15
Anyone gotten coverage to work in xc7wwdc in a non-trivial app?
I can get code coverage results inside of xcode with a new toy project. When I try with an existing app with tests, the tests are run (I see output, breakpoints hit), but the coverage window in the report navigator says No Coverage Data and nothing shows in the source editor sidebars. The Gather Coverage Data box is ticked in the scheme.
Replies
2
Boosts
0
Views
848
Activity
Jun ’15
Notes from Your App and Next Generation Networks session
Two parts to session:Transitioning to IPv6-only networksReducing Delays in NetworkingTransitioning to IPv6-only networksMore mobile carriers are moving to IPv6 networksIn Ye Olde Days, cellular data networks used IPv4. As IPv4 addresses ran out, NAT was introduced to make IPs go further.To fix the long-term problem, mobile carriers are now moving to IPv6. But they're also having to support IPv4 with NAT.The carriers want to drop IPv4 with NAT, so they're deploying DNS64/NAT64 to handle translation between IPv4 and IPv6 networks.DNS64 synthesizes an IPv6 address for an IPv4-only serverNAT64 performs IPv6 to IPv4 address translationApp Store apps need to be IPv6 ready - It will be an app submission requirement later in 2015.Enabling IPv6 test network from a Mac1. Boot OS X 10.112. Open System Preferences3. Option-click on the Sharing preference pane4. Option-click on Internet Sharing5. A Create IPv6 Only Network checkbox will appear6. Check Create IPv6 Only Network (this may also be labeled Create NAT6
Replies
12
Boosts
0
Views
16k
Activity
Jun ’15
Can not get CMAccelerometerData
I'm writing a code for WatchOS2 extension that uses CMAccelerometerData.Built with no error, running correct scheme, installed in Apple Watch device, but nothing happend.Can not even stop breakpoint on first line.Something missing ?@implementation ExtensionDelegate- (void)applicationDidFinishLaunching { motionManager = [[CMMotionManager alloc] init]; motionManager.accelerometerUpdateInterval = 0.1; if (motionManager.accelerometerAvailable) { [motionManager startAccelerometerUpdatesToQueue:[NSOperationQueue currentQueue] withHandler:^(CMAccelerometerData *accelerometerData, NSError *error) { double xx = accelerometerData.acceleration.x; NSLog(@%lf, xx); }]; }}@end
Replies
0
Boosts
0
Views
260
Activity
Jun ’15
Code coverage creating Framework
Hi everyone,I'm having a doubt or an issue creating a simple CocoaTouch Framwork and measuring the code coverage.For test only purposes I just created one struct and one unit testing file. Before testing, in the scheme's Test phase I've already checked the Gather Coverage Data checkbox. All tests succeed but the code coverage for the Framework still 0% within the Report Navigator > Coverage tab. I just can get some coverage checking the Show Test Bundles option.Am I missing something? Do I have to include some code that uses the Framework to check the coverage?
Replies
3
Boosts
0
Views
1.6k
Activity
Jun ’15
Reply to How to pass data from Customer App to Admin App
I think the standard approach is a custom URL scheme if your data is short enough to fit in a URL (not sure what limits, if any, there are on the length). There's also the keychain with the same sort of limit - it's meant for small bits of info like passwords.I believe as of iOS 8 you can now have a shared app container so apps from the same developer can share data. One app could write a file and the other app could read it. That, in combination with the URL scheme, may be a more flexible approach.
Topic: Programming Languages SubTopic: General Tags:
Replies
Boosts
Views
Activity
Jun ’15
Reply to WCSession sendMessage returning errors (simulator)
I found the answer in session 108 - Building Watch Apps, roughly 30 minutes in.Run the app with the Phone + Simulator scheme. This will start the watch sim.Switch the scheme to the Phone scheme associated with it (so, if you were using iPhone 6 + 38mm Watch, use iPhone 6)Hold down control and click the run button. This will run the scheme without rebuilding (and stopping the watch sim).Now you'll have both running at the same time. I've noticed that sometimes on step 3, the watch app will go to the home screen. It's still running though, start it back up and Connectivity will still work.
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Jun ’15
Reply to In WatchOS 2, there's no way to position views arbitrarily (possibly resulting in overlap) and no way to have views with custom rendering (e.g., by overriding a draw method). Why?
The API isn't quite as native as a lot of us were hoping, but there are ways around some of the limitations. For example custom drawing is possible by drawing an image and loading it into an image control, which is sufficient for a lot of situations. Arbitrary positioning of views is another matter with the flow approach to layout, but you might be able to do something with a bit of creativity. For games I'd imagine it's more a case of what can I do with these limitations rather than how do I do what I would like to do. The video on layout and animations would probably be a good start to see what is possible:https://developer.apple.com/videos/wwdc/2015/?id=216As someone who spent months on a version 1 watch app I was actually quite happy to see how version 2 apps work. I was worried that I would have to rewrite a lot of code if the layout scheme was changed, but the way Apple have designed it means that this is hopefully not the case. I'd imagine that a future version of watchOS will allow arbitrary
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Jun ’15
how to reset/restart an animation and have it appear continuous?
So, I am fairly new to iOS programming, and have inherited a project from a former coworker. We are building an app that contains a gauge UI. When data comes in, we want to smoothly rotate our layer (which is a needle image) from the current angle to a new target angle. Here is what we have, which worked well with slow data: -(void) MoveNeedleToAngle:(float) target { static float old_Value = 0.0; CABasicAnimation *rotateCurrentPressureTick = [CABasicAnimation animationWithKeyPath:@transform.rotation); [rotateCurrentPressureTick setDelegate:self]; rotateCurrentPressureTick.fromValue = [NSSNumber numberWithFloat:old_value/57.2958]; rotateCurrentPressureTick.removedOnCompletion=NO; rotateCurrentPressureTick.fillMode=kCAFillModeForwards; rotateCurrentPressureTick.toValue=[NSSNumber numberWithFloat:target/57.2958]; rotateCurrentPressureTick.duration=3; // constant 3 second sweep [imageView_Needle.layer addAnimation:rotateCurrentPressureTick forKey:@rotateTick]; old_Value = target; }The problem is we have a new dat
Replies
2
Boosts
0
Views
4.4k
Activity
Jun ’15
Archive with Address Sanitation?
Just wondering if (and if so, how) it's possible to archive my OS X app with the Address Sanitizer enabled (to give it to internal testers).The scheme editor in Xcode 7 makes it seem like that would not be possible, but maybe I'm missing something.
Replies
0
Boosts
0
Views
251
Activity
Jun ’15
Novice Apple Developer
So, I've been in the Apple Developer community for quite some time, and I love looking at new technologies before they come to the public. The one thing I want to do eventually is develop a keyboard for iOS that can immediately translate what you type so you don't have to go to an external translator and type it. The problem is I have a horrible time retaining the code to make most anything, and have been able to make website with a little code knowledge, but not completely.What's the best place for a novice like me to learn?
Replies
1
Boosts
0
Views
183
Activity
Jun ’15
Reply to Swift nested for loops cause performance hit
If you change the linelet objects = world!.childrentolet objects = Array(world!.children)you should get some speedup. With 1600 nodes on a couple of years old MacBook Pro I got 0.34 seconds with your code and 0.13 seconds with my change. With a simple collision detection thrown in, the time increased to 0.18 seconds. I don't know how this translates to your iPad, but it should at least be a little bit faster.
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Jun ’15
Reply to [UIApplication canOpenURL]?
An informative write-up on the changes can be found here:http://awkwardhare.com/post/121196006730/quick-take-on-ios-9-url-scheme-changes
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Jun ’15
Reply to NSURL StringwithContentsofURL
Search these forums for App Transport Security. iOS 9 now silently translates HTTP URLs to HTTPS and enforces current best practice security levels (key sizes etc.) unless you opt out in your plist. Longer term, you should update your server to support SSL with good security. Short term you can add a plist key to get back to the old behaviour.
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Jun ’15
Swift 2 error handling cannot express optional results when bridging from Objective-C
I depend on a legacy C++ library for which I need to build a bridge into Swift. The API is similar to a standard XML DOM and a database-like queries at the same time. Querying for a property of an object can return a value (e.g. Int), absence of a value (nil) or an error (something went wrong). Ideally I would like to have a Swift call like this:func getInt() throws -> NSNumber?It seems, it is not possible with the current Swift 2 compiler since the Objective-C method-(NSNumber*)getIntWithError:(NSError**)errorwill translate intofunc getInt() throws -> NSNUmberIt doesn't seem to be possible to express that the result is actually optional. I have already posted a bug report, however may someone have an idea for a workaround?Thanks a lot in advance!
Replies
4
Boosts
0
Views
575
Activity
Jun ’15