Search results for

“translate scheme”

6,671 results found

Post

Replies

Boosts

Views

Activity

Problems building static library for watchOS
I've created a watchOS 2 app and extension in Xcode 7 (beta 5). The extension is set up to include a static library as the watchOS 1 extension used to. This means that the static library needs to be compiled using the watchOS 2 SDK. I have set my build options for the library to build with the armv7k architecture.When I build the library separately in its own scheme, it builds without any errors or warnings. However, when I build my iPhone target, of which the watch and therefore the static library are dependencies, I get the following errors (amongst many)In file included from /Users/ricky/Documents/Silverlake/Other Sources/Silverlake-Prefix-Watch.pch:8: In file included from /Users/ricky/Documents/Silverlake/Silverlake_Watch.h:15: In file included from /Applications/Xcode-beta.app/Contents/Developer/Platforms/WatchSimulator.platform/Developer/SDKs/WatchSimulator2.0.sdk/System/Library/Frameworks/WatchKit.framework/Headers/WatchKit.h:9: In file included from /Applications/Xcode-beta.app/Contents/Deve
0
0
778
Aug ’15
canOpenURL failing for system-wide URL schemes
I'm running iOS 9b5.In my app, if a device can make a phone call, I want to color the text blue so it looks tappable. If not, I leave it black.In order to determine the device capabilities, I use:[[UIApplcation sharedApplication] canOpenURL:@telprompt://5555555555]As we all know, iOS 9 requires we whitelist any URL schemes we'll be using in our app as a privacy measure.I have this in my Info.plist:<key>LSApplicationQueriesSchemes</key> <array> <string>telprompt</string> </array>No matter what I do, I still get canOpenURL: failed for URL: telprompt:// - error: (null). I've tried tel:// and sms:// and I can't seem to avoid that syslog warning.Does anybody know of a way to detect whether or not a device can make a phone call wtihout triggering these warnings?
1
0
2.8k
Aug ’15
Xcode 7 Generated Interface from Obj-C - Useless?
Just starting out learning Swift and was trying to to use the Generated Interface counterpart view of some of my existing Obj-C headers to see how things translate into Swift and to update my own headers with nullability support. But it seems as of Xcode 7 beta 5 that what gets displayed does not match what the swift compiler really uses.E.g Given this simple Obj-C header:#import <Foundation/Foundation.h> typedef NS_ENUM(NSInteger, WonderChoice) { WonderChoiceHamburger, WonderChoiceHotDog }; @interface WonderObject : NSObject @property (nonatomic, copy, nullable) NSString* someString; @property (nonatomic, copy, nonnull) NSArray* someArray; @endresults in the following being displayed in Generated Interface:public func NS_ENUM(NSInteger: Int32, _ WonderChoice: Int32) -> Int32 public class WonderObject { public var someString: UnsafeMutablePointer<Int32> public var someArray: UnsafeMutablePointer<Int32> }which as you can see is mostly uselessWhen using this code from Swift I can t
1
0
579
Aug ’15
xcodebuild for application with watch os 2 target and CONFIGURATION_BUILD_DIR is not working in xcode 7 beta 5
When i try to build my application from my terminal or jenkins, xcodebuild fails at the last step of building the application itself. I've watch os 2 application and extension with my application. It builds the extension and watch app. But at the end of the build process it can't find the watch application's .app file.PBXCp build/MyApp/Build/Products/Release-watchos/MyWatchApp.app build/MyApp.app/Watch/MyWatchApp.appthis command fails and it says No such file or directoryMy build command is;xcodebuild build -project MyApp.xcodeproj -scheme MyApp -configuration Release CONFIGURATION_BUILD_DIR=./buildEnvironment:MacOS 10.10.4Xcode 7 beta 5I hope Apple can take a look at this and fix the problem. It'll cause a lot of trouble for the developers who are using CI tools like Jenkins.Thanks.
19
0
10k
Aug ’15
How translate C++ To Swift
I have little knowledge of C ++, I tried to declare the operator as follows:struct Simple2D { var x: Double! , y: Double! func setS(x0:Double , y0:Double)->Simple2D { return Simple2D(x: x0, y: y0) } func lenght(v: Simple2D)->Double { return pythagorous2(v.x, b:v.y) } }var tx = Simple2D(x: 2.0, y: 2.0)prefix operator * {}prefix func * (v: Simple2D)-> Double { return tx.x*v.x + tx.y*v.y}this does not work, how do I call the functions from another file?This original file in c++ :ile Simple2D.htemplate <typename T>struct Simple2D{ T x, y; / Simple2D <T>() { x = y = 0; } / Simple2D <T>(const T x0, const T y0) : x(x0), y(y0) { } / void operator ()(const T x0, const T y0) { x= x0; y= y0; } / bool operator ==(const Simple2D<T> &v) const;/ Simple2D <T> operator -(const Simple2D <T> &v) const;/ Simple2D <T> operator -(void) const;}file Simple2D.cpptemplate <typename T>bool Simple2D <T>::operator ==(const Simple2D <T> &v) const{ return (is_
5
0
5.1k
Aug ’15
Reply to SecKeyRef always nil in Xcode 7 Beta 5
Thanks for the reply. Here is my code about the these for PeerPublicKey when generating peerKeyRef from SecItemCopyMatching becomes nil:+ (SecKeyRef) addPeerPublicKey:(NSString *) peerName withPublicKey:(NSData *) publicKey { OSStatus sanityCheck = noErr; SecKeyRef peerKeyRef = NULL; CFTypeRef persistPeer = NULL; NSData * peerTag = [[NSData alloc] initWithBytes:(const void *)[peerName UTF8String] length:[peerName length]]; NSMutableDictionary * peerPublicKeyAttr = [[NSMutableDictionary alloc] init]; [peerPublicKeyAttr setObject:(__bridge id)kSecClassKey forKey:(__bridge id)kSecClass]; [peerPublicKeyAttr setObject:(__bridge id)kSecAttrKeyTypeRSA forKey:(__bridge id)kSecAttrKeyType]; [peerPublicKeyAttr setObject:peerTag forKey:(__bridge id)kSecAttrApplicationTag]; [peerPublicKeyAttr setObject:publicKey forKey:(__bridge id)kSecValueData]; [peerPublicKeyAttr setObject:[NSNumber numberWithUnsignedInteger:2048] forKey:(__bridge id)kSecAttrKeySizeInBits]; sanityCheck = SecItemAdd((__bridge CFDictionaryRef) peerPubli
Topic: Privacy & Security SubTopic: General Tags:
Aug ’15
Core Image with GLKView slower on iOS 9
Hi, I have an application that crops, translate and rotate a image based on user gestures, then blend it with another image and renders it on a GLKView. It was very fast on iOS 8, but when I compiled it with iOS 9, it became much slower.Does anyone is having problems with Core Image and iOS 9? Can I fix it by migrating to Metal?Thanks
1
0
526
Aug ’15
Open in <app name> alert on browser link that opens app
We have an app that is opened by our portal site. Our issue is not that it doesn't open the app properly from the link but that there is an alert that pops up sometimes when the link is clicked that asks Open in App Name?If you click open it will then open the app and act as it should. I just dont understand why it is asking if we want to open in our app. Is there a setting on the phone or a project/plist value I need to change?I think we have the correct information in the plist for the identifier and scheme but maybe you can verify itapp link = appscheme://saveThis?...bundle = com.my.appnameurlidentifier = saveThisurlscheme = appschemeI have tried other things like the identifier the same as the bundle but nothing seems to work for all devices.Any help is appreciated.Brian
1
0
2.7k
Aug ’15
Phone app does not display the ”back” button
I tried to run some of openURL scheme.When I openURL scheme start the mail and sms app[mailto: and sms:], it appeared back button in mail app and sms app.However, when I openURL scheme start the phone[tel:], back button in phone app did not appear.Is this, will the correct as the operation of iOS9?
Topic: UI Frameworks SubTopic: AppKit Tags:
1
0
265
Aug ’15
Why is UIAppearance not being applied to UIAlertController in iOS 9?
My app supports back to iOS 5.1.1 so I use UIActionSheet and UIAlertView. These seem to translate to the new UIAlertController pretty well. However, the color of the buttons in these views are set using window.tintColor. This is a problem in my app since I use black toolbars with white text, but do NOT want white text on light grey. You'd think that iOS would be smart enough to not render text in unreadable colors.Anyway, the only work around in iOS 8 is to set the appearnace of text views. Here's what I do in the app delegate... [[UIView appearanceWhenContainedIn:[UIAlertController class], nil] setTintColor:[UIColor colorWithRed:0 green:(float)196/255 blue:(float)181/255 alpha:1]]; [[UILabel appearanceWhenContainedIn:[UIAlertController class], nil] setTextColor:[UIColor colorWithRed:0 green:(float)196/255 blue:(float)181/255 alpha:1]];However, this does NOTHING in iOS 9 beta. I've issued a bug report since there appears to be no way to change the color of this text from window.tintColor.Does anyone
2
0
4.1k
Aug ’15
Reply to Swift 1.2 to deploy on iOS 7 and above
Hi gvimlan,From XCode 7 onwards if you use Swift it has to be Swift 2.I'm 90% sure you'll still be able to use XCode 6 (and therfore Swift 1.2) for a while, until Apple makes draws a line in the sand stopping that.However you wont be able to use any iOS9 only features until you upgrade to XCode 7.That said, I recently changed a very large project from Swift 1.2 to Swift 2 - using both the auto-upgrader and manul changes, and it took about 4 hours in total. A large amount of time, but probably pretty insignificant in the grand scheme of things.The main thing you'll find if you use Swift 1.2 examples in Swift 2 are :* 1.2 code that references to UIKit, SpriteKit etc may do some casts that are unncessary using the latest Swift friendly header files found in XCode 7.* A few renamed methods (where XCode will tell you what the new name of the method is)
Topic: Programming Languages SubTopic: Swift Tags:
Aug ’15
iOS Simulator Does Not Recognize Japanese Base Localization
I need to develop an app for the japanese market, with additional suppoert for a small number of english speaking users.The storyboards will be created in Japanese, and at a later stage exported as .xliff for translation into english.I can not afford to develop the UI in English, and transalte it to Japanese afterwards (the development team is Japanese), so I have a setup where the Base localization is assumed to be Japanese, and English is at most another localization:In Project Settings > Info, I haveLocalizations Language Resources English - Development Language 3 Files Localizedalone, and Use Base Localizations checked.I created the storyboards for the Base localization in Japanese, and added corresponding .strings files for English.The target's Info.plist specifies Localization native development region as Japan.When I set the language of my iPhone 5s to English and launch the app, it shows the English label. If I change the device language to Japanese and re-launch the app, it displays in Ja
0
0
711
Aug ’15
XLIFF note field in IB vs NSLocalizedString
When you use NSLocalizedString to localize text, you get a convenient <note> field exported in your XLIFF file, that gives your translators a useful message providing context for the string to be translated. For example: <trans-unit id=%d file(s) remaining> <source>%d file(s) remaining</source> <note>Message shown for remaining files</note> </trans-unit>However, when you have a string in Interface Builder in Xcode, the <note> field in the exported XLIFF seems less than useful, like this: <trans-unit id=ASb-3k-Fxs.title> <source>Statistics</source> <target>Statistics</target> <note>Class = UINavigationItem; title = Statistics; ObjectID = ASb-3k-Fxs;</note> </trans-unit>Xcode doesn't seem to use the Document Label or Document Notes from the Identity Inspector, which might provide more useful information.Is there a way to change this note by developers in Xcode? Does Xcode depend on this note not cha
2
0
756
Aug ’15
Problems building static library for watchOS
I've created a watchOS 2 app and extension in Xcode 7 (beta 5). The extension is set up to include a static library as the watchOS 1 extension used to. This means that the static library needs to be compiled using the watchOS 2 SDK. I have set my build options for the library to build with the armv7k architecture.When I build the library separately in its own scheme, it builds without any errors or warnings. However, when I build my iPhone target, of which the watch and therefore the static library are dependencies, I get the following errors (amongst many)In file included from /Users/ricky/Documents/Silverlake/Other Sources/Silverlake-Prefix-Watch.pch:8: In file included from /Users/ricky/Documents/Silverlake/Silverlake_Watch.h:15: In file included from /Applications/Xcode-beta.app/Contents/Developer/Platforms/WatchSimulator.platform/Developer/SDKs/WatchSimulator2.0.sdk/System/Library/Frameworks/WatchKit.framework/Headers/WatchKit.h:9: In file included from /Applications/Xcode-beta.app/Contents/Deve
Replies
0
Boosts
0
Views
778
Activity
Aug ’15
Reply to Make a USSD call programmatically problem
This is a documented limitation of the tel URL scheme. The Apple URL Scheme Reference describes this limitation and the reasons for it. Share and Enjoy — Quinn The Eskimo! Apple Developer Relations, Developer Technical Support, Core OS/Hardware let myEmail = eskimo + 1 + @apple.com
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Aug ’15
canOpenURL failing for system-wide URL schemes
I'm running iOS 9b5.In my app, if a device can make a phone call, I want to color the text blue so it looks tappable. If not, I leave it black.In order to determine the device capabilities, I use:[[UIApplcation sharedApplication] canOpenURL:@telprompt://5555555555]As we all know, iOS 9 requires we whitelist any URL schemes we'll be using in our app as a privacy measure.I have this in my Info.plist:<key>LSApplicationQueriesSchemes</key> <array> <string>telprompt</string> </array>No matter what I do, I still get canOpenURL: failed for URL: telprompt:// - error: (null). I've tried tel:// and sms:// and I can't seem to avoid that syslog warning.Does anybody know of a way to detect whether or not a device can make a phone call wtihout triggering these warnings?
Replies
1
Boosts
0
Views
2.8k
Activity
Aug ’15
Xcode 7 Generated Interface from Obj-C - Useless?
Just starting out learning Swift and was trying to to use the Generated Interface counterpart view of some of my existing Obj-C headers to see how things translate into Swift and to update my own headers with nullability support. But it seems as of Xcode 7 beta 5 that what gets displayed does not match what the swift compiler really uses.E.g Given this simple Obj-C header:#import <Foundation/Foundation.h> typedef NS_ENUM(NSInteger, WonderChoice) { WonderChoiceHamburger, WonderChoiceHotDog }; @interface WonderObject : NSObject @property (nonatomic, copy, nullable) NSString* someString; @property (nonatomic, copy, nonnull) NSArray* someArray; @endresults in the following being displayed in Generated Interface:public func NS_ENUM(NSInteger: Int32, _ WonderChoice: Int32) -> Int32 public class WonderObject { public var someString: UnsafeMutablePointer<Int32> public var someArray: UnsafeMutablePointer<Int32> }which as you can see is mostly uselessWhen using this code from Swift I can t
Replies
1
Boosts
0
Views
579
Activity
Aug ’15
xcodebuild for application with watch os 2 target and CONFIGURATION_BUILD_DIR is not working in xcode 7 beta 5
When i try to build my application from my terminal or jenkins, xcodebuild fails at the last step of building the application itself. I've watch os 2 application and extension with my application. It builds the extension and watch app. But at the end of the build process it can't find the watch application's .app file.PBXCp build/MyApp/Build/Products/Release-watchos/MyWatchApp.app build/MyApp.app/Watch/MyWatchApp.appthis command fails and it says No such file or directoryMy build command is;xcodebuild build -project MyApp.xcodeproj -scheme MyApp -configuration Release CONFIGURATION_BUILD_DIR=./buildEnvironment:MacOS 10.10.4Xcode 7 beta 5I hope Apple can take a look at this and fix the problem. It'll cause a lot of trouble for the developers who are using CI tools like Jenkins.Thanks.
Replies
19
Boosts
0
Views
10k
Activity
Aug ’15
How translate C++ To Swift
I have little knowledge of C ++, I tried to declare the operator as follows:struct Simple2D { var x: Double! , y: Double! func setS(x0:Double , y0:Double)->Simple2D { return Simple2D(x: x0, y: y0) } func lenght(v: Simple2D)->Double { return pythagorous2(v.x, b:v.y) } }var tx = Simple2D(x: 2.0, y: 2.0)prefix operator * {}prefix func * (v: Simple2D)-> Double { return tx.x*v.x + tx.y*v.y}this does not work, how do I call the functions from another file?This original file in c++ :ile Simple2D.htemplate <typename T>struct Simple2D{ T x, y; / Simple2D <T>() { x = y = 0; } / Simple2D <T>(const T x0, const T y0) : x(x0), y(y0) { } / void operator ()(const T x0, const T y0) { x= x0; y= y0; } / bool operator ==(const Simple2D<T> &v) const;/ Simple2D <T> operator -(const Simple2D <T> &v) const;/ Simple2D <T> operator -(void) const;}file Simple2D.cpptemplate <typename T>bool Simple2D <T>::operator ==(const Simple2D <T> &v) const{ return (is_
Replies
5
Boosts
0
Views
5.1k
Activity
Aug ’15
Reply to SecKeyRef always nil in Xcode 7 Beta 5
Thanks for the reply. Here is my code about the these for PeerPublicKey when generating peerKeyRef from SecItemCopyMatching becomes nil:+ (SecKeyRef) addPeerPublicKey:(NSString *) peerName withPublicKey:(NSData *) publicKey { OSStatus sanityCheck = noErr; SecKeyRef peerKeyRef = NULL; CFTypeRef persistPeer = NULL; NSData * peerTag = [[NSData alloc] initWithBytes:(const void *)[peerName UTF8String] length:[peerName length]]; NSMutableDictionary * peerPublicKeyAttr = [[NSMutableDictionary alloc] init]; [peerPublicKeyAttr setObject:(__bridge id)kSecClassKey forKey:(__bridge id)kSecClass]; [peerPublicKeyAttr setObject:(__bridge id)kSecAttrKeyTypeRSA forKey:(__bridge id)kSecAttrKeyType]; [peerPublicKeyAttr setObject:peerTag forKey:(__bridge id)kSecAttrApplicationTag]; [peerPublicKeyAttr setObject:publicKey forKey:(__bridge id)kSecValueData]; [peerPublicKeyAttr setObject:[NSNumber numberWithUnsignedInteger:2048] forKey:(__bridge id)kSecAttrKeySizeInBits]; sanityCheck = SecItemAdd((__bridge CFDictionaryRef) peerPubli
Topic: Privacy & Security SubTopic: General Tags:
Replies
Boosts
Views
Activity
Aug ’15
Core Image with GLKView slower on iOS 9
Hi, I have an application that crops, translate and rotate a image based on user gestures, then blend it with another image and renders it on a GLKView. It was very fast on iOS 8, but when I compiled it with iOS 9, it became much slower.Does anyone is having problems with Core Image and iOS 9? Can I fix it by migrating to Metal?Thanks
Replies
1
Boosts
0
Views
526
Activity
Aug ’15
Open in <app name> alert on browser link that opens app
We have an app that is opened by our portal site. Our issue is not that it doesn't open the app properly from the link but that there is an alert that pops up sometimes when the link is clicked that asks Open in App Name?If you click open it will then open the app and act as it should. I just dont understand why it is asking if we want to open in our app. Is there a setting on the phone or a project/plist value I need to change?I think we have the correct information in the plist for the identifier and scheme but maybe you can verify itapp link = appscheme://saveThis?...bundle = com.my.appnameurlidentifier = saveThisurlscheme = appschemeI have tried other things like the identifier the same as the bundle but nothing seems to work for all devices.Any help is appreciated.Brian
Replies
1
Boosts
0
Views
2.7k
Activity
Aug ’15
Phone app does not display the ”back” button
I tried to run some of openURL scheme.When I openURL scheme start the mail and sms app[mailto: and sms:], it appeared back button in mail app and sms app.However, when I openURL scheme start the phone[tel:], back button in phone app did not appear.Is this, will the correct as the operation of iOS9?
Topic: UI Frameworks SubTopic: AppKit Tags:
Replies
1
Boosts
0
Views
265
Activity
Aug ’15
Why is UIAppearance not being applied to UIAlertController in iOS 9?
My app supports back to iOS 5.1.1 so I use UIActionSheet and UIAlertView. These seem to translate to the new UIAlertController pretty well. However, the color of the buttons in these views are set using window.tintColor. This is a problem in my app since I use black toolbars with white text, but do NOT want white text on light grey. You'd think that iOS would be smart enough to not render text in unreadable colors.Anyway, the only work around in iOS 8 is to set the appearnace of text views. Here's what I do in the app delegate... [[UIView appearanceWhenContainedIn:[UIAlertController class], nil] setTintColor:[UIColor colorWithRed:0 green:(float)196/255 blue:(float)181/255 alpha:1]]; [[UILabel appearanceWhenContainedIn:[UIAlertController class], nil] setTextColor:[UIColor colorWithRed:0 green:(float)196/255 blue:(float)181/255 alpha:1]];However, this does NOTHING in iOS 9 beta. I've issued a bug report since there appears to be no way to change the color of this text from window.tintColor.Does anyone
Replies
2
Boosts
0
Views
4.1k
Activity
Aug ’15
Reply to Swift 1.2 to deploy on iOS 7 and above
Hi gvimlan,From XCode 7 onwards if you use Swift it has to be Swift 2.I'm 90% sure you'll still be able to use XCode 6 (and therfore Swift 1.2) for a while, until Apple makes draws a line in the sand stopping that.However you wont be able to use any iOS9 only features until you upgrade to XCode 7.That said, I recently changed a very large project from Swift 1.2 to Swift 2 - using both the auto-upgrader and manul changes, and it took about 4 hours in total. A large amount of time, but probably pretty insignificant in the grand scheme of things.The main thing you'll find if you use Swift 1.2 examples in Swift 2 are :* 1.2 code that references to UIKit, SpriteKit etc may do some casts that are unncessary using the latest Swift friendly header files found in XCode 7.* A few renamed methods (where XCode will tell you what the new name of the method is)
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Aug ’15
iOS Simulator Does Not Recognize Japanese Base Localization
I need to develop an app for the japanese market, with additional suppoert for a small number of english speaking users.The storyboards will be created in Japanese, and at a later stage exported as .xliff for translation into english.I can not afford to develop the UI in English, and transalte it to Japanese afterwards (the development team is Japanese), so I have a setup where the Base localization is assumed to be Japanese, and English is at most another localization:In Project Settings > Info, I haveLocalizations Language Resources English - Development Language 3 Files Localizedalone, and Use Base Localizations checked.I created the storyboards for the Base localization in Japanese, and added corresponding .strings files for English.The target's Info.plist specifies Localization native development region as Japan.When I set the language of my iPhone 5s to English and launch the app, it shows the English label. If I change the device language to Japanese and re-launch the app, it displays in Ja
Replies
0
Boosts
0
Views
711
Activity
Aug ’15
XLIFF note field in IB vs NSLocalizedString
When you use NSLocalizedString to localize text, you get a convenient <note> field exported in your XLIFF file, that gives your translators a useful message providing context for the string to be translated. For example: <trans-unit id=%d file(s) remaining> <source>%d file(s) remaining</source> <note>Message shown for remaining files</note> </trans-unit>However, when you have a string in Interface Builder in Xcode, the <note> field in the exported XLIFF seems less than useful, like this: <trans-unit id=ASb-3k-Fxs.title> <source>Statistics</source> <target>Statistics</target> <note>Class = UINavigationItem; title = Statistics; ObjectID = ASb-3k-Fxs;</note> </trans-unit>Xcode doesn't seem to use the Document Label or Document Notes from the Identity Inspector, which might provide more useful information.Is there a way to change this note by developers in Xcode? Does Xcode depend on this note not cha
Replies
2
Boosts
0
Views
756
Activity
Aug ’15
Reply to Unable to submit watch OS 2 (Swift 2) for internal testing via TestFlight
Are you trying to submit the archive build using the Watch scheme or the iOS scheme?
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Aug ’15