Search results for

“translate scheme”

6,670 results found

Post

Replies

Boosts

Views

Activity

Swift 2.0 interop with Objective C not working as expected?
I'm porting a Swift 1.2 framework to 2.0. After fixing the 3 million compiler errors courtesy of the new Swift 2.0 error handling scheme, I was finally able to link my test app (written in Objective C) to use the updated framework.Xcode version 7.0 beta 3 (7A121l)However, I ran into a problem. Some Swift functions are no longer generated into the automatically generated Objective C header (MyFramwork-Swift.h) used by the Objective C test app.Here is an example of a function that is not exposed: (My actual framework function returned an enum, but I tried to simplify to illustrate the problem more clearly). public func calculateImportantValueDangerously() throws -> Int { return 42 }Note that other functions like the following actually do get exposed as expected (and can be called): public func doSomething() { } public func doSomethingDangerous() throws { } public func calculateMeaninglessValue() -> Int { return -1 }Here's the Objective C side: MyClass *newInstance = [[MyClass alloc] init]; [newIn
7
0
1.7k
Jul ’15
[PSA] native AppleScripting support for Swift
Hi folks,(Tried to post this yesterday, but it got stuck in the mod queue due to containing links so I'm reposting it with URLs mangled; de-mangle as needed.)In light of OS X 10.11 addressing some longstanding deficiencies in NSAppleEventDescriptor, I've been dusting off a fork of my old objc-appscript project, now renamed AppleEventBridge, modernizing and extending it both to take advantage of improvements to ObjC in the last few years and to add native support for Apple's new Swift language: hxxps://bitbucket.org/hhas/appleeventbridge/Unlike Apple's flawed Scripting Bridge and JavaScript for Automation, AEB aims to provide application scripting capabilities and compatibility that equal (if not better) AppleScript's own, along with superior documentation and developer tool support.Here's a simple example, comparing AEB's new Swift and ObjC bindings against de facto standard AppleScript: tell application TextEdit to get text of document 1 let result = try TextEdit().documents[1].text.get() as! String id resul
3
0
1.4k
Jul ’15
Base internalization-Supporting English only
We as developer most of the time using English as Development language. Considering Base Internationalization in my project how can i export XLIFF (english) file?I want to share english XLIFF file to translator team for content and its grammatical verification. My app only support English language but in future it may support other languages hence i am using base internationalization in my app.I have export en.xliff file firstly and share it to translator team. Translator team has updated some content and correct some grammatical part.While importing back the updated en.xliff file to my project I am facing below error. http://i.stack.imgur.com/1wfP5.png Please share what's the best way to handle English strings file while using base internationalization.
1
0
572
Jul ’15
Help! Xcode seems to ignore relative compilation directories in debug symbols
If I set a custom working directory in the Xcode scheme, it seems to have no effect whatsoever on source mapping to debug symbols.First I will give some background for a little context, then I will describe the problem in more detail.We build thousands of shared libraries in centralized build locations, and the debug info points to the build area where the debug symbols were created.For example, if a file /build/main/foo/bar.cpp was built in the build area, it's AT_comp_dir would look like this:AT_name(bar.cpp) AT_comp_dir(/build/main/foo) (Suffice it to say that the main directory is the current working directory where the debugger would get launched.)If our developers sync a sandbox and try to hit breakpoints in their sandbox sources, the breakpoints either don't get hit or get hit in the build area sources. This is expected, since the symbols point to the build area sources, because that is where the symbols were created.This causes great pain during development, because developers have to regener
0
0
955
Jul ’15
APP REVIEW ON ITUNES CONNECT. Invalid file GeoJSON
Hello!!,I'm about to publish the App Bicycle, and I have everything ready and binary uploaded to iTunes Connect, but what was my surprise when trying to send it for review Apple jumps me the following error:To configure this app as an iOS app routing, load a file of coverage app routing on page My apps version of iTunes Connect.Have an idea of what may be happening ?, because not let me send the App for review Apple ??.In my Xcode project I have enabled the Maps and checked the box for bikes.So do not understand that it may be happening ... I have seen that it is possible for a file GeoJSON necessary.My App is global, because it has 25 countries and 262 cities worldwide.I reading the guides and error, I created the file requested GeoJSON and I've tried to add to iTunes Connect, but I skip the following error:The file of your app coverage routing is invalid.But I have all the steps followed by the use explaining Apple Guides.I explain step by step:1. In my project and have enabled the Maps and selected the opt
6
0
3.7k
Jul ’15
Naming MDLVertexDescriptor attributes via Swift
Here's a short but complete bit of code that only attempts to do one thing, but never even gets to the point that it can compile. It merely tries to set the name of one of the attributes of a MDLVertexDescriptor. The attributes are read-only, though I'm not trying to mutate the array of attributes, merely a property of one of them, like so:import MetalKit let x = MTLVertexDescriptor() var y = MTKModelIOVertexDescriptorFromMetal(x) var a = y.attributes var a0 = a[0] a0.name = MDLVertexAttributeNormalThe last line is rejected because a0 is immutable. You can try to set y.attributes[0].name in one go, but that'll fail too. It seems like it's just my bad, trying to mutate a read-only property, something Swift strictly enforces, but this a just a direct translation of the following Objective-C code that does work (used in, e.g., MetalKitEssentials):MDLVertexDescriptor *y = MTKModelIOVertexDescriptorFromMetal(x); y.attributes[0].name = MDLVertexAttributePosition;(What makes it a bit more disconcerting is t
1
0
665
Jul ’15
Reply to Scheme Destination Toolbar Missing
BTW, it doesn't require full screen to see the menu, it just requires Xcode to be at a certain width. If I stretch Xcode wide, it appears again. When I start to shrink it down, it goes away completely.Workaround is to access these options in the Product menu, under Schemes and Destinations.
Jul ’15
Creating release build for framework
Hi, I am developing a dynamic framework using xcode 6.4. I am able to generate the debug build for it which is available in debug-iPhones and debug-iPhonesimulators folders under Products Group. But I am not able to generate the release build for the same. I tried editing the scheme but it didn't work.Also I dont want to go with archive option as it works only in device. I want the release build to work for the simulators as well as for the devices. So, I want the release build to be generated in release-iPhones and release-iPhonesimulators folders, same as in case of debug build.What is the procedure to generate release build for framework?
1
0
497
Jul ’15
Network Extension debugging
I'm trying to create a sample NEFilterDataProvider extension based on the new iOS9 API's. I succesfully added a new target using the skeleton that's provided. My issue is - I can't get breakpoints to trigger (I have them scattered all throughout the skeleton code file), and I can't get any device log information from the print statements I'm using in my code for debugging. I've tried:Running the host app, then attaching to the PID/Name of the extensionRunning the extension scheme directly against the host app, then trying to attach to the PID/NameI also have this problem against the sample code. I'm wondering if maybe I'm approaching this the wrong way. I was under the assumption that I can run the host app and the extension gets installed and will run forever in the background. Is there anything I need to do code-wise in the host app to 'activate' the extension to start it? If so, does the extension run in the background continuously after I do so, even when the host app is closed?Thanks
15
0
11k
Jul ’15
Reply to Integrating External Payments in iOS App
>I am not selling any content in the app.The guidelines say that IAP can only be used for 'in app' consumption - anything else requires your own external payment scheme.
Topic: App & System Services SubTopic: StoreKit Tags:
Replies
Boosts
Views
Activity
Jul ’15
Swift 2.0 interop with Objective C not working as expected?
I'm porting a Swift 1.2 framework to 2.0. After fixing the 3 million compiler errors courtesy of the new Swift 2.0 error handling scheme, I was finally able to link my test app (written in Objective C) to use the updated framework.Xcode version 7.0 beta 3 (7A121l)However, I ran into a problem. Some Swift functions are no longer generated into the automatically generated Objective C header (MyFramwork-Swift.h) used by the Objective C test app.Here is an example of a function that is not exposed: (My actual framework function returned an enum, but I tried to simplify to illustrate the problem more clearly). public func calculateImportantValueDangerously() throws -> Int { return 42 }Note that other functions like the following actually do get exposed as expected (and can be called): public func doSomething() { } public func doSomethingDangerous() throws { } public func calculateMeaninglessValue() -> Int { return -1 }Here's the Objective C side: MyClass *newInstance = [[MyClass alloc] init]; [newIn
Replies
7
Boosts
0
Views
1.7k
Activity
Jul ’15
[PSA] native AppleScripting support for Swift
Hi folks,(Tried to post this yesterday, but it got stuck in the mod queue due to containing links so I'm reposting it with URLs mangled; de-mangle as needed.)In light of OS X 10.11 addressing some longstanding deficiencies in NSAppleEventDescriptor, I've been dusting off a fork of my old objc-appscript project, now renamed AppleEventBridge, modernizing and extending it both to take advantage of improvements to ObjC in the last few years and to add native support for Apple's new Swift language: hxxps://bitbucket.org/hhas/appleeventbridge/Unlike Apple's flawed Scripting Bridge and JavaScript for Automation, AEB aims to provide application scripting capabilities and compatibility that equal (if not better) AppleScript's own, along with superior documentation and developer tool support.Here's a simple example, comparing AEB's new Swift and ObjC bindings against de facto standard AppleScript: tell application TextEdit to get text of document 1 let result = try TextEdit().documents[1].text.get() as! String id resul
Replies
3
Boosts
0
Views
1.4k
Activity
Jul ’15
Reply to Fairplay SPC returning nil
The content identifier is used as a unique identifier.In your playlist, you should use a custom URL scheme for the URI of the EXT-X-KEY tag, something like skd://key65, as documented in the FPS Programming Guide.
Topic: Media Technologies SubTopic: Streaming Tags:
Replies
Boosts
Views
Activity
Jul ’15
Base internalization-Supporting English only
We as developer most of the time using English as Development language. Considering Base Internationalization in my project how can i export XLIFF (english) file?I want to share english XLIFF file to translator team for content and its grammatical verification. My app only support English language but in future it may support other languages hence i am using base internationalization in my app.I have export en.xliff file firstly and share it to translator team. Translator team has updated some content and correct some grammatical part.While importing back the updated en.xliff file to my project I am facing below error. http://i.stack.imgur.com/1wfP5.png Please share what's the best way to handle English strings file while using base internationalization.
Replies
1
Boosts
0
Views
572
Activity
Jul ’15
Help! Xcode seems to ignore relative compilation directories in debug symbols
If I set a custom working directory in the Xcode scheme, it seems to have no effect whatsoever on source mapping to debug symbols.First I will give some background for a little context, then I will describe the problem in more detail.We build thousands of shared libraries in centralized build locations, and the debug info points to the build area where the debug symbols were created.For example, if a file /build/main/foo/bar.cpp was built in the build area, it's AT_comp_dir would look like this:AT_name(bar.cpp) AT_comp_dir(/build/main/foo) (Suffice it to say that the main directory is the current working directory where the debugger would get launched.)If our developers sync a sandbox and try to hit breakpoints in their sandbox sources, the breakpoints either don't get hit or get hit in the build area sources. This is expected, since the symbols point to the build area sources, because that is where the symbols were created.This causes great pain during development, because developers have to regener
Replies
0
Boosts
0
Views
955
Activity
Jul ’15
APP REVIEW ON ITUNES CONNECT. Invalid file GeoJSON
Hello!!,I'm about to publish the App Bicycle, and I have everything ready and binary uploaded to iTunes Connect, but what was my surprise when trying to send it for review Apple jumps me the following error:To configure this app as an iOS app routing, load a file of coverage app routing on page My apps version of iTunes Connect.Have an idea of what may be happening ?, because not let me send the App for review Apple ??.In my Xcode project I have enabled the Maps and checked the box for bikes.So do not understand that it may be happening ... I have seen that it is possible for a file GeoJSON necessary.My App is global, because it has 25 countries and 262 cities worldwide.I reading the guides and error, I created the file requested GeoJSON and I've tried to add to iTunes Connect, but I skip the following error:The file of your app coverage routing is invalid.But I have all the steps followed by the use explaining Apple Guides.I explain step by step:1. In my project and have enabled the Maps and selected the opt
Replies
6
Boosts
0
Views
3.7k
Activity
Jul ’15
Reply to Discount Codes / Promotional Codes
You may need to contact Apple directly and ask how to replicate Starbucks distro scheme, as an example.Keep in mind, tho, that method may be reserved for bigger players, so... Apple Developer Relations: (800) 633 2152(408) 974 4897
Replies
Boosts
Views
Activity
Jul ’15
Naming MDLVertexDescriptor attributes via Swift
Here's a short but complete bit of code that only attempts to do one thing, but never even gets to the point that it can compile. It merely tries to set the name of one of the attributes of a MDLVertexDescriptor. The attributes are read-only, though I'm not trying to mutate the array of attributes, merely a property of one of them, like so:import MetalKit let x = MTLVertexDescriptor() var y = MTKModelIOVertexDescriptorFromMetal(x) var a = y.attributes var a0 = a[0] a0.name = MDLVertexAttributeNormalThe last line is rejected because a0 is immutable. You can try to set y.attributes[0].name in one go, but that'll fail too. It seems like it's just my bad, trying to mutate a read-only property, something Swift strictly enforces, but this a just a direct translation of the following Objective-C code that does work (used in, e.g., MetalKitEssentials):MDLVertexDescriptor *y = MTKModelIOVertexDescriptorFromMetal(x); y.attributes[0].name = MDLVertexAttributePosition;(What makes it a bit more disconcerting is t
Replies
1
Boosts
0
Views
665
Activity
Jul ’15
More than 5 tabs, how to change background color of the More page?
I have a color scheme in my app that I want to be consistent on all pages. But I have more than 5 tabs in my tab bar controller and therefore get the More one which brings you to a table listing the additional items. The problem is this more page has a white background. How can I customize this?Thank you.
Replies
1
Boosts
0
Views
216
Activity
Jul ’15
Reply to Scheme Destination Toolbar Missing
This seems to be a bug to me, please dupe rdar://21855495.The thing that seemed to trigger it for me was a wider than usual Schemes menu, thanks to some duplication of iOS 8.4 device simulators (also filed a bug for that: rdar://21855393
Replies
Boosts
Views
Activity
Jul ’15
Reply to Scheme Destination Toolbar Missing
BTW, it doesn't require full screen to see the menu, it just requires Xcode to be at a certain width. If I stretch Xcode wide, it appears again. When I start to shrink it down, it goes away completely.Workaround is to access these options in the Product menu, under Schemes and Destinations.
Replies
Boosts
Views
Activity
Jul ’15
Creating release build for framework
Hi, I am developing a dynamic framework using xcode 6.4. I am able to generate the debug build for it which is available in debug-iPhones and debug-iPhonesimulators folders under Products Group. But I am not able to generate the release build for the same. I tried editing the scheme but it didn't work.Also I dont want to go with archive option as it works only in device. I want the release build to work for the simulators as well as for the devices. So, I want the release build to be generated in release-iPhones and release-iPhonesimulators folders, same as in case of debug build.What is the procedure to generate release build for framework?
Replies
1
Boosts
0
Views
497
Activity
Jul ’15
Reply to Is it allowed to hopover from one app from another app?
Links between apps are fine and and can be achieved by using a custom URL scheme. Apple have some great document on this to get you started.Using URL Schemes to Communicate with Apps- Tom
Replies
Boosts
Views
Activity
Jul ’15
Network Extension debugging
I'm trying to create a sample NEFilterDataProvider extension based on the new iOS9 API's. I succesfully added a new target using the skeleton that's provided. My issue is - I can't get breakpoints to trigger (I have them scattered all throughout the skeleton code file), and I can't get any device log information from the print statements I'm using in my code for debugging. I've tried:Running the host app, then attaching to the PID/Name of the extensionRunning the extension scheme directly against the host app, then trying to attach to the PID/NameI also have this problem against the sample code. I'm wondering if maybe I'm approaching this the wrong way. I was under the assumption that I can run the host app and the extension gets installed and will run forever in the background. Is there anything I need to do code-wise in the host app to 'activate' the extension to start it? If so, does the extension run in the background continuously after I do so, even when the host app is closed?Thanks
Replies
15
Boosts
0
Views
11k
Activity
Jul ’15