Search results for

“translate scheme”

6,670 results found

Post

Replies

Boosts

Views

Activity

[UIApplication canOpenURL]?
Under iOS 9 the call [UIApplication canOpenURL:] will now result in the following message in the log:-canOpenURL: failed for URL: imdb: - error: This app is not allowed to query for scheme imdbThis seems to be a new security feature which prevents that Apps can scan for installed Apps with known custom URL schemes. But this makes it impossible to ckeck if a certain App is installed. So there's no longer possible to hide all the options to open certain information in the other Apps if these Apps are not installed. This results to a bad user experience, because either I have to provide an option to open data in external Aps, even if these are not available, or I have to remove these options entirely. Both is not really very user friendly.Is there a workaround for this? Is there a key for the Info.plist where I can request the permission for calling canOpenURL (similar to the key for the location services in order to be able to get geo locations)?
4
0
12k
Jun ’15
Reply to [UIApplication canOpenURL]?
Thanks for pointing me to the right direction. I could solve my issue now.For all developers having the same issue, the solution is to add a whitelist of all URL schemes your App may need to call into the Info.plist. The key to add is LSApplicationQueriesSchemes and its value is an array with all the URL schemes.Of course this still kills many Apps which offer services to other Apps via X-callback-URL protocol, but at least this will work for many other Apps.
Topic: App & System Services SubTopic: Core OS Tags:
Jun ’15
Inspect WebView in Mac Application
Hello,What is the proper way to inspect a WebView in a Mac application?I can access any iOS simulator or connected device through the Safari Develop menu just not any Mac apps (The entry for the Mac lists No Inspectable Applications).All the Mac apps are launched by Xcode and the scheme is set to debug.Is there something I am missing or are Mac apps not supported? I tried to search the documentation but found nothing.Thanks.
5
0
20k
Jun ’15
Reply to This app is not allowed to query for scheme...
Right. You'll have to declare the URL schemes, you want to use in your Info.plist. Use the key LSApplicationQueriesSchemes for that.Note: Apps that were built before iOS 9 will always return NO for canOpenURL as soon as they checked 50 different schemes. Even rebooting the device doesn't reset those!There will also be session 509 about the new Universal Links called Seamless Linking to Your App on Thursday.
Topic: App & System Services SubTopic: Core OS Tags:
Jun ’15
Address Sanitizer crashes app when using two EAGLContexts
Using Xcode 7 beta, running the following OpenGL ES 2 code on Debug configuration on a iPhone 6 device running iOS 8.3, with Address Sanitizer enabled for the scheme, crashes:#include <OpenGLES/ES2/glext.h> //... EAGLContext *contextA = [[EAGLContext alloc] initWithAPI:kEAGLRenderingAPIOpenGLES2]; if (!contextA || ![EAGLContext setCurrentContext:contextA]) { return; } GLuint renderBuffer = 0; glGenRenderbuffers(1, &renderBuffer); glBindRenderbuffer(GL_RENDERBUFFER, renderBuffer); [contextA renderbufferStorage:GL_RENDERBUFFER fromDrawable:nil]; GLuint frameBuffer = 0; glGenFramebuffers(1, &frameBuffer); glBindFramebuffer(GL_FRAMEBUFFER, frameBuffer); glFramebufferRenderbuffer(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_RENDERBUFFER, renderBuffer); glFlush(); EAGLContext *contextB = [[EAGLContext alloc] initWithAPI:contextA.API sharegroup:contextA.sharegroup]; if (!contextB || ![EAGLContext setCurrentContext:contextB]) { return; } [contextB presentRenderbuffer:GL_RENDERBUFFER]; // EXC_BAD_AC
1
0
1k
Jun ’15
Reply to Does anyone have sample code for complications?
Hi,I found it complicated to get the complications to show up in the Simulator—the code was relatively simple, but placeholders didn’t seem to show up due to caching issues.The video ‘Creating Complications with ClockKit’ is definitely the best place to start—the code below is based on the code shown in the video.Create a new project------------------------------------------I found it easier to create a new project with the complication support added in (which also generates the stubs for the data source protocol functions), and then add that to my existing project. + File > New > Project > watchOS > Application (‘iOS App with WatchKit App’) + Add in ‘Include Complication’Targets------------------------------------------Check the following settings for the WatchKit Extension target: + Target > WatchKit Extension + Complications Configuration: + Data Source Class = %(PRODUCT_MODULE_NAME).ComplicationController + Supported Families: check required families (only check the ones you’re handling in
Topic: App & System Services SubTopic: Core OS Tags:
Jun ’15
Maximum number for LSApplicationQueriesSchemes?
In our POI Finder app Where To? I'm using -canOpenUrl: to detect if compatible directions apps are installed. There are more than 50 supported apps, many of them available in a multitude of country-specific versions with respective country-specific URL schemes.In WWDC session 703 (Privacy and Your App) it was only mentioned that we can white list the needed URL schemes in LSApplicationQueriesSchemes in Info.plist. Also the mechanism for legacy apps built for iOS 8 was described. (The first 50 probed schemes are implicitly whitelisted.)What was missing is a statement about a maximum number of entries allowed in the LSApplicationQueriesSchemes array.We need more than 50 different URL schemes to test for all countries the app is deployed in.
0
0
1.9k
Jun ’15
Can't debug on watchOS 2
When I try to build & run my app on my real devices, I can't select them under schemes. they show up below ineligible devices:My iPhoneName + (null) (paired device os version)So I looked in Organizer > Devices, and at Paired Watch Information it readsName <null>Model UnknownwatchOS (null) ((null))Identifier b42ebe... seems okayUrgh... tried to re-pair, didn't help. It just deleted all my apps and can't download them again (Insufficient storage, read that in other thread)
1
0
468
Jun ’15
Signing 3rd party .framework bundled in the app
Hi,I use a 3rd party/open source framework. I embedded its project in my main app's project, and I set my main app to be dependent on it. I can build, deploy and run my app in the test device using developers profile in xcode. The problem is when I try to build it from command line for distribution. I tried passing the adhoc cert and adhoc provisioning profile as parameters. It is complaining that the bundleId of the framework is different than the one defined in the provisioning profile. Which is obviously true because the bundleId of the framework is pre-defined by its developer.I use this command to build it:xcodebuild build -workspace <my wrkspace> -scheme <scheme> CODE_SIGN_IDENTITY=<identity name> PROVISONING_PROFILE=<provisioning name>CODE_SIGNING_REQUIRED=“YES” CONFIGURATION_BUILD_DIR=<path>The options that I can think of:1. Change the bundleid of the framework to match my app bundleid2. Do not sign when building, but pass the provisioning profile when e
2
0
1.7k
Jun ’15
Opt out of canOpenURL: security?
We have a QR code reader application, so we ingest many different kinds of URLs with different schemes, and we want to send them on to their handler applications. The new canOpenURL: security is understandable, but a problem for our user experience. Is there any way to opt out of this behavior? I understand Apple wants to migrate to Universal Links, but we already have a lot of content out there and would like to be able to transition in a more orderly manner.As a fallback we probably could just start hardcoding our common schemes, but I was wondering if for our use case there was another way around.
2
0
317
Jun ’15
'Module was not compiled for testing' when using @testable
ENABLE_TESTABILITY = YESis set to YES in debug, not in release, but if I have a scheme that compiles a release build of my framework (who also build the test target) build will fail with'Module was not compiled for testing' when using @testablein release mode ENABLE-TESTABILITY is set the NOcaused by @testable import inside test target@testable import Awesomekit
1
0
11k
Jun ’15
Reply to ErrorType and userInfo dictionaries
El Capitan provides a new class method on NSError named +[NSError setUserInfoValueProviderForDomain:provider:] which allows you to decouple the code for constructing userInfo dictionaries from your worker code. Since you cast an ErrorType to an NSError when you send it to APIs like -[NSApp presentError:], I'd expect that this would work with ErrorTypes as well. It's pretty elegant, actually; your worker code can only have the bare minimum needed to mark an error (throw MyErrorEnum.NuclearWar), and the code to translate that into Sorry, you have unleashed the apocalypse, and now the living envy the dead. can be somewhere else.
Topic: Programming Languages SubTopic: Swift Tags:
Jun ’15
Xcode 7 is 32 bit supported?
We do general Unix development on Mac OS X but because some of the libaries we link against are currently on 32 bit we have to produce 32 bit binaries.When using Xcode 6 we can debug Unix binaries by selecting My Mac (32-bit) in the scheme selector, on Xcode 7 we only get My Mac and it gives the error: the specified architecture 'x86_64' is not compatible with 'i386-apple-macosx' in '/usr/atc-5.00.5/dev/cust0400/xcust'.I don't see any method of specifying i386 or 32-bit anywhere in build settings.Thanks, regards, Rob.
2
0
2.7k
Jun ’15
[UIApplication canOpenURL]?
Under iOS 9 the call [UIApplication canOpenURL:] will now result in the following message in the log:-canOpenURL: failed for URL: imdb: - error: This app is not allowed to query for scheme imdbThis seems to be a new security feature which prevents that Apps can scan for installed Apps with known custom URL schemes. But this makes it impossible to ckeck if a certain App is installed. So there's no longer possible to hide all the options to open certain information in the other Apps if these Apps are not installed. This results to a bad user experience, because either I have to provide an option to open data in external Aps, even if these are not available, or I have to remove these options entirely. Both is not really very user friendly.Is there a workaround for this? Is there a key for the Info.plist where I can request the permission for calling canOpenURL (similar to the key for the location services in order to be able to get geo locations)?
Replies
4
Boosts
0
Views
12k
Activity
Jun ’15
Reply to [UIApplication canOpenURL]?
Thanks for pointing me to the right direction. I could solve my issue now.For all developers having the same issue, the solution is to add a whitelist of all URL schemes your App may need to call into the Info.plist. The key to add is LSApplicationQueriesSchemes and its value is an array with all the URL schemes.Of course this still kills many Apps which offer services to other Apps via X-callback-URL protocol, but at least this will work for many other Apps.
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Jun ’15
Inspect WebView in Mac Application
Hello,What is the proper way to inspect a WebView in a Mac application?I can access any iOS simulator or connected device through the Safari Develop menu just not any Mac apps (The entry for the Mac lists No Inspectable Applications).All the Mac apps are launched by Xcode and the scheme is set to debug.Is there something I am missing or are Mac apps not supported? I tried to search the documentation but found nothing.Thanks.
Replies
5
Boosts
0
Views
20k
Activity
Jun ’15
Reply to This app is not allowed to query for scheme...
Right. You'll have to declare the URL schemes, you want to use in your Info.plist. Use the key LSApplicationQueriesSchemes for that.Note: Apps that were built before iOS 9 will always return NO for canOpenURL as soon as they checked 50 different schemes. Even rebooting the device doesn't reset those!There will also be session 509 about the new Universal Links called Seamless Linking to Your App on Thursday.
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Jun ’15
Address Sanitizer crashes app when using two EAGLContexts
Using Xcode 7 beta, running the following OpenGL ES 2 code on Debug configuration on a iPhone 6 device running iOS 8.3, with Address Sanitizer enabled for the scheme, crashes:#include <OpenGLES/ES2/glext.h> //... EAGLContext *contextA = [[EAGLContext alloc] initWithAPI:kEAGLRenderingAPIOpenGLES2]; if (!contextA || ![EAGLContext setCurrentContext:contextA]) { return; } GLuint renderBuffer = 0; glGenRenderbuffers(1, &renderBuffer); glBindRenderbuffer(GL_RENDERBUFFER, renderBuffer); [contextA renderbufferStorage:GL_RENDERBUFFER fromDrawable:nil]; GLuint frameBuffer = 0; glGenFramebuffers(1, &frameBuffer); glBindFramebuffer(GL_FRAMEBUFFER, frameBuffer); glFramebufferRenderbuffer(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_RENDERBUFFER, renderBuffer); glFlush(); EAGLContext *contextB = [[EAGLContext alloc] initWithAPI:contextA.API sharegroup:contextA.sharegroup]; if (!contextB || ![EAGLContext setCurrentContext:contextB]) { return; } [contextB presentRenderbuffer:GL_RENDERBUFFER]; // EXC_BAD_AC
Replies
1
Boosts
0
Views
1k
Activity
Jun ’15
Where are the simulators for iOS Deployment target 8.3?
Good Day,Are they just not available yet?Or, I'm missing a setting or a tech note, but with Xcode 6.3.2 whenever I switch a project's settings ( iOS Deployment Target drop down ) to 8.3, all the simulatorsgo away and my current App scheme only has 1 value available iOS Device.Thanks!AdamThis was posted originally on 5/30 but now archived in the old forum.
Replies
7
Boosts
0
Views
7.2k
Activity
Jun ’15
Reply to Does anyone have sample code for complications?
Hi,I found it complicated to get the complications to show up in the Simulator—the code was relatively simple, but placeholders didn’t seem to show up due to caching issues.The video ‘Creating Complications with ClockKit’ is definitely the best place to start—the code below is based on the code shown in the video.Create a new project------------------------------------------I found it easier to create a new project with the complication support added in (which also generates the stubs for the data source protocol functions), and then add that to my existing project. + File > New > Project > watchOS > Application (‘iOS App with WatchKit App’) + Add in ‘Include Complication’Targets------------------------------------------Check the following settings for the WatchKit Extension target: + Target > WatchKit Extension + Complications Configuration: + Data Source Class = %(PRODUCT_MODULE_NAME).ComplicationController + Supported Families: check required families (only check the ones you’re handling in
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Jun ’15
Maximum number for LSApplicationQueriesSchemes?
In our POI Finder app Where To? I'm using -canOpenUrl: to detect if compatible directions apps are installed. There are more than 50 supported apps, many of them available in a multitude of country-specific versions with respective country-specific URL schemes.In WWDC session 703 (Privacy and Your App) it was only mentioned that we can white list the needed URL schemes in LSApplicationQueriesSchemes in Info.plist. Also the mechanism for legacy apps built for iOS 8 was described. (The first 50 probed schemes are implicitly whitelisted.)What was missing is a statement about a maximum number of entries allowed in the LSApplicationQueriesSchemes array.We need more than 50 different URL schemes to test for all countries the app is deployed in.
Replies
0
Boosts
0
Views
1.9k
Activity
Jun ’15
Can't debug on watchOS 2
When I try to build & run my app on my real devices, I can't select them under schemes. they show up below ineligible devices:My iPhoneName + (null) (paired device os version)So I looked in Organizer > Devices, and at Paired Watch Information it readsName <null>Model UnknownwatchOS (null) ((null))Identifier b42ebe... seems okayUrgh... tried to re-pair, didn't help. It just deleted all my apps and can't download them again (Insufficient storage, read that in other thread)
Replies
1
Boosts
0
Views
468
Activity
Jun ’15
Signing 3rd party .framework bundled in the app
Hi,I use a 3rd party/open source framework. I embedded its project in my main app's project, and I set my main app to be dependent on it. I can build, deploy and run my app in the test device using developers profile in xcode. The problem is when I try to build it from command line for distribution. I tried passing the adhoc cert and adhoc provisioning profile as parameters. It is complaining that the bundleId of the framework is different than the one defined in the provisioning profile. Which is obviously true because the bundleId of the framework is pre-defined by its developer.I use this command to build it:xcodebuild build -workspace <my wrkspace> -scheme <scheme> CODE_SIGN_IDENTITY=<identity name> PROVISONING_PROFILE=<provisioning name>CODE_SIGNING_REQUIRED=“YES” CONFIGURATION_BUILD_DIR=<path>The options that I can think of:1. Change the bundleid of the framework to match my app bundleid2. Do not sign when building, but pass the provisioning profile when e
Replies
2
Boosts
0
Views
1.7k
Activity
Jun ’15
Opt out of canOpenURL: security?
We have a QR code reader application, so we ingest many different kinds of URLs with different schemes, and we want to send them on to their handler applications. The new canOpenURL: security is understandable, but a problem for our user experience. Is there any way to opt out of this behavior? I understand Apple wants to migrate to Universal Links, but we already have a lot of content out there and would like to be able to transition in a more orderly manner.As a fallback we probably could just start hardcoding our common schemes, but I was wondering if for our use case there was another way around.
Replies
2
Boosts
0
Views
317
Activity
Jun ’15
'Module was not compiled for testing' when using @testable
ENABLE_TESTABILITY = YESis set to YES in debug, not in release, but if I have a scheme that compiles a release build of my framework (who also build the test target) build will fail with'Module was not compiled for testing' when using @testablein release mode ENABLE-TESTABILITY is set the NOcaused by @testable import inside test target@testable import Awesomekit
Replies
1
Boosts
0
Views
11k
Activity
Jun ’15
Reply to 'Module was not compiled for testing' when using @testable
solved by making sure the framewok scheme tests target has only Test checked in and no Run
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Jun ’15
Reply to ErrorType and userInfo dictionaries
El Capitan provides a new class method on NSError named +[NSError setUserInfoValueProviderForDomain:provider:] which allows you to decouple the code for constructing userInfo dictionaries from your worker code. Since you cast an ErrorType to an NSError when you send it to APIs like -[NSApp presentError:], I'd expect that this would work with ErrorTypes as well. It's pretty elegant, actually; your worker code can only have the bare minimum needed to mark an error (throw MyErrorEnum.NuclearWar), and the code to translate that into Sorry, you have unleashed the apocalypse, and now the living envy the dead. can be somewhere else.
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Jun ’15
Xcode 7 is 32 bit supported?
We do general Unix development on Mac OS X but because some of the libaries we link against are currently on 32 bit we have to produce 32 bit binaries.When using Xcode 6 we can debug Unix binaries by selecting My Mac (32-bit) in the scheme selector, on Xcode 7 we only get My Mac and it gives the error: the specified architecture 'x86_64' is not compatible with 'i386-apple-macosx' in '/usr/atc-5.00.5/dev/cust0400/xcust'.I don't see any method of specifying i386 or 32-bit anywhere in build settings.Thanks, regards, Rob.
Replies
2
Boosts
0
Views
2.7k
Activity
Jun ’15