Search results for

“translate scheme”

6,670 results found

Post

Replies

Boosts

Views

Activity

Reply to nsmanagedobjectcontext don't save certain url file
First up, I moved your question to Core OS > Networking because it seems more about networking than about Swift.Second, I'm having a hard time understanding your actual question. At first blush it seems like you're simply trying to test URLs for equality, that is, you're trying to see if request.URL matches some fixed URL. Is that right? If so, == should work. Swift translates it to -[NSURL isEqual:]. For example: import Foundation let u1 = NSURL(string: http://foo.example.com)! let u2 = NSURL(string: http://bar.example.com)! let u3 = NSURL(string: http://foo.example.com)! println(u1 == u2) // prints false println(u1 == u3) // prints true println(u1 === u3) // prints falseNote that u1 and u3 are not the same object, so === returns false: [I tested this with Xcode 6.4 on OS X 10.10.4, although I expect it'd be the same for Swift 2.]println(u1 === u3) // prints falseIMPORTANT URL equality is more complex than you might think. Consider the following:let uR = NSURL(string: http://example.com) let uR1
Jul ’15
Reply to How do I set the language of the watch simulator?
I am seeing this as well.UPDATE: As of Xcode 7.0 beta 5, I still see the issue. There seems to be no way to get the watch simulator to change language and region. I tried using a run scheme as well as changing the language and region for the iOS Simulator. As a workaround, I am testing my app on a physical watch. I change the watch's language and region settings in the Apple Watch app on the iPhone.
Topic: App & System Services SubTopic: Core OS Tags:
Jul ’15
Reply to Compute kernels on beta 5 (and 6) are totally broken (radar 22029422)
How the **** these kind of bugs can pass your validation process ? Beta 4, with its assortment of issues was able to execute these kernels…Don’t you have some moderately complex compute kernels that can help you, or do you cross your finger waiting for our returns ? 👿Here at Iluac we have a bunch of kernels, translated from OpenCL, that can vigorously shake your drivers… And seriously, as I test and debug El Capitan as a part time job for nothing, hire me for three monthes and I’ll help you provide decent drivers (yeah… you know, I’m french and supposedly arrogant) ! And because I love Apple, I’ll do that for a honest salary, a business class seat, an unrestricted access to your Redbull's storehouse, and a ticket for WWDC ’16 ! 😁
Topic: Graphics & Games SubTopic: General Tags:
Jul ’15
Reply to xCode 6.4 scheme names
I've run into the same problem as the original poster. After years of having one active scheme for each simulator/device combination, a few days ago I started XCode and found I have over 200 of them: fifteen for each simulator/device combination. I can see them in the devices window, but deleting them takes a few minutes each, and probably doesn't address whatever root problem caused the proliferation. I'd really like to figure out what caused the problem, and how to delete those I don't want without taking hours to do that.
Jul ’15
Reply to xCode 6.4 scheme names
Also, as the original poster points out, the scheme now shows the device (iPad Air) and the simulator identifier (i.e.: 085BD3A4-CC9E-4717-AF2F-E08106BB7A88) There is no reference to the iOS of the scheme, so it's just hit-and-miss as to what iOS each scheme tests. That makes it difficult - to say the least - to test an app against all devices/iOSs.
Jul ’15
Reply to xCode 6.4 scheme names
I had the same problem (see my posts below). Re-installed Xcode 6.3.2 and find it works correctly there. Since I don't need the changes in 6.4, I'll stick with 6.3.2. Schemes are correct in 7 beta 4, so I'll hope the problem is limited to 6.4.
Jul ’15
Apple Mach-O Linker Error
Hello together,im new in this forum. I just have some problem to test one of my apps.As soon as i press the play button to build and run my current scheme, i get this Apple Mach-O Linker Error. Shortly, after that, xcodes shuts down with an unkown exception. In detail:ld: file not found: /Users/krax/Library/Developer/Xcode/DerivedData/machdeinradio-ciravbeaotcxtdgilonsjeqfnxix/Build/Products/Debug-iphonesimulator/machdeinradio.app/Contents/MacOS/machdeinradioclang: error: linker command failed with exit code 1 (use -v to see invocation)If i open the folder (/Users/krax/Library/Developer/Xcode/DerivedData/machdeinradio-ciravbeaotcxtdgilonsjeqfnxix/Build/Products/Debug-iphonesimulator/) i find an app file machdeinradio.app but no folder (machdeinradio.app/Contents/MacOS/machdeinradio).Could anybody help?Best regardsBekx
4
0
36k
Jul ’15
Reply to A signed resource has been added, modified, or deleted
The problem seems to be that extension targets that contain swift code aren't being handled properly.There's a workaround for this given in stackoverflow:You can put the following in your scheme so that it executes with every build:rm -rf ~/Library/Developer/Xcode/DerivedData/YourAppName-*/Build/Products/Debug-iphoneos/com.yourcompany.Name.extension.*Or, alternatively:touch ${PROJECT_DIR}/SOME SWIFT FILE IN EXTENSION.SWIFTYou need to add either of these, making adjustments for your particular project of course, here:Edit scheme... > Expand the Run mode in the sidebar > Pre-actions > Click '+' > New Run Script Action.It doesn't solve the underlying issue, but perhaps Apple will if they recieve bug reports.
Jul ’15
iTunesConnect metadata 'What is new' disappeared for Dutch on 'Ready for Sale' version
Since July 29th my ready for sale app version show an exclamation mark for the dutch version. Exploring this situation it shows me that in the 'What is new' section there is no longer the entered text.In addition if I check in the app store or with the 'nl' URL in the web browser the app description is in Dutch but the 'What is new' section shows the English translationIt seems to be gone!!!Also I am preparing my next app submit with the version 'Ready to Submit'. Here I prepared the all translations weeks ago and now the Dutch prepared version is completey gone/lost. It stay under the seciton 'not localized'.Do you have any idea how to recover the data or how to get the 'Ready for Sale' version complete because at this status metadata cannot be changed?
4
0
493
Jul ’15
Reply to variable size array
The struct is defined in C as:struct AudioChannelLayout { AudioChannelLayoutTag mChannelLayoutTag; UInt32 mChannelBitmap; UInt32 mNumberChannelDescriptions; AudioChannelDescription mChannelDescriptions[1]; }; typedef struct AudioChannelLayout AudioChannelLayout;So, if you allocate a variable of this type statically in your code, you can use only one element for mChannelDescriptions. AudioChannelLayout layout; for( int i = 0; i < (int)layout.mNumberChannelDescriptions; ++i ) { //This code may crash your app when i being 1 or more. if( layout.mChannelDescriptions[i].mChannelLabel == kAudioChannelLabel_Left ) { /*some action*/ } }If you want to use more than one channels, you need to allocate it dynamically: int numChannels = 2; AudioChannelLayout *layoutPtr = malloc(sizeof(AudioChannelLayout) + (numChannels - 1) * sizeof(AudioChannelDescription)); layoutPtr->mNumberChannelDescriptions = numChannels; for( int i = 0; i < numChannels; ++i ) { if( layoutPtr->mChannelDescriptions[i].mChannelLabel == kAud
Topic: Programming Languages SubTopic: Swift Tags:
Jul ’15
Localizations broken in Xcode 7 beta 4?
If all of your storyboard localizations stopped working all of a sudden in beta 4 of Xcode 7, then you may be in the same boat as we were. We have a deployment target of 7.0 for one of our apps. As soon as we built it with beta 4, all of the localized strings in main.strings stopped translating, and we would see the non-translated strings.If you run across this, the workaround is to set your deployment target to 9.0 and then do a clean before building and running. You will see all your translated strings. We really want to be able to continue to support users with older versions, and since this particular app isn't using any of the features introduced in iOS 9, we don't want to have to change the deployment target to 9.0.I submitted a bug report: 22098859.
1
0
466
Jul ’15
Reply to No identity or provisioning profile
Xcode will require a valid developer certificate for iOS development if the active scheme's destination is set to iOS Device (in the toolbar, where it shows your current target/scheme), so if it that's the problem you would just need to set it back to one of the simulators.You can also change it via the Product > Destination submenu.
Aug ’15
How do I create a copy of my Xcode release scheme and apply a specific define for measuring release performance?
In the WWDC 15 video: Performance on iOS and watchOS, Ben Englert discusses Code Instrumentation using Swift and encourages developers to profile the release configuration of your app...by creating a copy of your apps release scheme in xcode and define one addidtional 'define' so you can build a release version of your app with the performance instrumentation.How do you acheive this? Also, how do you create 'defines' when creating swift only apps?The snippet from the video below shows the usage of the 'define':#if MEASURE_PERFORMANCE let startTime = CFAbsoluteTimeGetCurrent() #endif
1
0
3.3k
Aug ’15
Reply to nsmanagedobjectcontext don't save certain url file
First up, I moved your question to Core OS > Networking because it seems more about networking than about Swift.Second, I'm having a hard time understanding your actual question. At first blush it seems like you're simply trying to test URLs for equality, that is, you're trying to see if request.URL matches some fixed URL. Is that right? If so, == should work. Swift translates it to -[NSURL isEqual:]. For example: import Foundation let u1 = NSURL(string: http://foo.example.com)! let u2 = NSURL(string: http://bar.example.com)! let u3 = NSURL(string: http://foo.example.com)! println(u1 == u2) // prints false println(u1 == u3) // prints true println(u1 === u3) // prints falseNote that u1 and u3 are not the same object, so === returns false: [I tested this with Xcode 6.4 on OS X 10.10.4, although I expect it'd be the same for Swift 2.]println(u1 === u3) // prints falseIMPORTANT URL equality is more complex than you might think. Consider the following:let uR = NSURL(string: http://example.com) let uR1
Replies
Boosts
Views
Activity
Jul ’15
Reply to NSURLSession - Proxy Settings
Try setting kCFNetworkProxiesHTTPProxy key to your proxy host and kCFNetworkProxiesHTTPPort to the port your proxy listens on. Also I think proxy host should be just host name or ip address (without scheme prefix).
Replies
Boosts
Views
Activity
Jul ’15
Reply to How do I set the language of the watch simulator?
I am seeing this as well.UPDATE: As of Xcode 7.0 beta 5, I still see the issue. There seems to be no way to get the watch simulator to change language and region. I tried using a run scheme as well as changing the language and region for the iOS Simulator. As a workaround, I am testing my app on a physical watch. I change the watch's language and region settings in the Apple Watch app on the iPhone.
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Jul ’15
Reply to Compute kernels on beta 5 (and 6) are totally broken (radar 22029422)
How the **** these kind of bugs can pass your validation process ? Beta 4, with its assortment of issues was able to execute these kernels…Don’t you have some moderately complex compute kernels that can help you, or do you cross your finger waiting for our returns ? 👿Here at Iluac we have a bunch of kernels, translated from OpenCL, that can vigorously shake your drivers… And seriously, as I test and debug El Capitan as a part time job for nothing, hire me for three monthes and I’ll help you provide decent drivers (yeah… you know, I’m french and supposedly arrogant) ! And because I love Apple, I’ll do that for a honest salary, a business class seat, an unrestricted access to your Redbull's storehouse, and a ticket for WWDC ’16 ! 😁
Topic: Graphics & Games SubTopic: General Tags:
Replies
Boosts
Views
Activity
Jul ’15
Reply to xCode 6.4 scheme names
I've run into the same problem as the original poster. After years of having one active scheme for each simulator/device combination, a few days ago I started XCode and found I have over 200 of them: fifteen for each simulator/device combination. I can see them in the devices window, but deleting them takes a few minutes each, and probably doesn't address whatever root problem caused the proliferation. I'd really like to figure out what caused the problem, and how to delete those I don't want without taking hours to do that.
Replies
Boosts
Views
Activity
Jul ’15
Reply to xCode 6.4 scheme names
Also, as the original poster points out, the scheme now shows the device (iPad Air) and the simulator identifier (i.e.: 085BD3A4-CC9E-4717-AF2F-E08106BB7A88) There is no reference to the iOS of the scheme, so it's just hit-and-miss as to what iOS each scheme tests. That makes it difficult - to say the least - to test an app against all devices/iOSs.
Replies
Boosts
Views
Activity
Jul ’15
Reply to xCode 6.4 scheme names
I had the same problem (see my posts below). Re-installed Xcode 6.3.2 and find it works correctly there. Since I don't need the changes in 6.4, I'll stick with 6.3.2. Schemes are correct in 7 beta 4, so I'll hope the problem is limited to 6.4.
Replies
Boosts
Views
Activity
Jul ’15
Apple Mach-O Linker Error
Hello together,im new in this forum. I just have some problem to test one of my apps.As soon as i press the play button to build and run my current scheme, i get this Apple Mach-O Linker Error. Shortly, after that, xcodes shuts down with an unkown exception. In detail:ld: file not found: /Users/krax/Library/Developer/Xcode/DerivedData/machdeinradio-ciravbeaotcxtdgilonsjeqfnxix/Build/Products/Debug-iphonesimulator/machdeinradio.app/Contents/MacOS/machdeinradioclang: error: linker command failed with exit code 1 (use -v to see invocation)If i open the folder (/Users/krax/Library/Developer/Xcode/DerivedData/machdeinradio-ciravbeaotcxtdgilonsjeqfnxix/Build/Products/Debug-iphonesimulator/) i find an app file machdeinradio.app but no folder (machdeinradio.app/Contents/MacOS/machdeinradio).Could anybody help?Best regardsBekx
Replies
4
Boosts
0
Views
36k
Activity
Jul ’15
Reply to A signed resource has been added, modified, or deleted
The problem seems to be that extension targets that contain swift code aren't being handled properly.There's a workaround for this given in stackoverflow:You can put the following in your scheme so that it executes with every build:rm -rf ~/Library/Developer/Xcode/DerivedData/YourAppName-*/Build/Products/Debug-iphoneos/com.yourcompany.Name.extension.*Or, alternatively:touch ${PROJECT_DIR}/SOME SWIFT FILE IN EXTENSION.SWIFTYou need to add either of these, making adjustments for your particular project of course, here:Edit scheme... > Expand the Run mode in the sidebar > Pre-actions > Click '+' > New Run Script Action.It doesn't solve the underlying issue, but perhaps Apple will if they recieve bug reports.
Replies
Boosts
Views
Activity
Jul ’15
iTunesConnect metadata 'What is new' disappeared for Dutch on 'Ready for Sale' version
Since July 29th my ready for sale app version show an exclamation mark for the dutch version. Exploring this situation it shows me that in the 'What is new' section there is no longer the entered text.In addition if I check in the app store or with the 'nl' URL in the web browser the app description is in Dutch but the 'What is new' section shows the English translationIt seems to be gone!!!Also I am preparing my next app submit with the version 'Ready to Submit'. Here I prepared the all translations weeks ago and now the Dutch prepared version is completey gone/lost. It stay under the seciton 'not localized'.Do you have any idea how to recover the data or how to get the 'Ready for Sale' version complete because at this status metadata cannot be changed?
Replies
4
Boosts
0
Views
493
Activity
Jul ’15
Reply to how to launch phone keypad
Hi arifnyet,The tel: url scheme allows your app to launch the dialer with the specified number pre-filled. For example tel:1-408-555-5555.See Phone Links in the Apple URL Scheme Reference.
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
Boosts
Views
Activity
Jul ’15
Reply to variable size array
The struct is defined in C as:struct AudioChannelLayout { AudioChannelLayoutTag mChannelLayoutTag; UInt32 mChannelBitmap; UInt32 mNumberChannelDescriptions; AudioChannelDescription mChannelDescriptions[1]; }; typedef struct AudioChannelLayout AudioChannelLayout;So, if you allocate a variable of this type statically in your code, you can use only one element for mChannelDescriptions. AudioChannelLayout layout; for( int i = 0; i < (int)layout.mNumberChannelDescriptions; ++i ) { //This code may crash your app when i being 1 or more. if( layout.mChannelDescriptions[i].mChannelLabel == kAudioChannelLabel_Left ) { /*some action*/ } }If you want to use more than one channels, you need to allocate it dynamically: int numChannels = 2; AudioChannelLayout *layoutPtr = malloc(sizeof(AudioChannelLayout) + (numChannels - 1) * sizeof(AudioChannelDescription)); layoutPtr->mNumberChannelDescriptions = numChannels; for( int i = 0; i < numChannels; ++i ) { if( layoutPtr->mChannelDescriptions[i].mChannelLabel == kAud
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Jul ’15
Localizations broken in Xcode 7 beta 4?
If all of your storyboard localizations stopped working all of a sudden in beta 4 of Xcode 7, then you may be in the same boat as we were. We have a deployment target of 7.0 for one of our apps. As soon as we built it with beta 4, all of the localized strings in main.strings stopped translating, and we would see the non-translated strings.If you run across this, the workaround is to set your deployment target to 9.0 and then do a clean before building and running. You will see all your translated strings. We really want to be able to continue to support users with older versions, and since this particular app isn't using any of the features introduced in iOS 9, we don't want to have to change the deployment target to 9.0.I submitted a bug report: 22098859.
Replies
1
Boosts
0
Views
466
Activity
Jul ’15
Reply to No identity or provisioning profile
Xcode will require a valid developer certificate for iOS development if the active scheme's destination is set to iOS Device (in the toolbar, where it shows your current target/scheme), so if it that's the problem you would just need to set it back to one of the simulators.You can also change it via the Product > Destination submenu.
Replies
Boosts
Views
Activity
Aug ’15
How do I create a copy of my Xcode release scheme and apply a specific define for measuring release performance?
In the WWDC 15 video: Performance on iOS and watchOS, Ben Englert discusses Code Instrumentation using Swift and encourages developers to profile the release configuration of your app...by creating a copy of your apps release scheme in xcode and define one addidtional 'define' so you can build a release version of your app with the performance instrumentation.How do you acheive this? Also, how do you create 'defines' when creating swift only apps?The snippet from the video below shows the usage of the 'define':#if MEASURE_PERFORMANCE let startTime = CFAbsoluteTimeGetCurrent() #endif
Replies
1
Boosts
0
Views
3.3k
Activity
Aug ’15