Search results for

“translate scheme”

6,670 results found

Post

Replies

Boosts

Views

Activity

Reply to Xcode7 code completion broken
The scheme's build action specifies which targets to build. Check that the right ones are being built.Assuming that's fine, then I'd start playing around with the file contents. What happens if you deliberately introduce an error? When you remove that error? What happens if you comment out all the methods? Put them back one by one?Does the project have Enable Modules (C and Objective C) turned on? If it's off, try turning it on. If it's on, try turning it off, building, and turning it back on again.
Jun ’15
canOpenURL maximum whitelist size
Hi,The information released about canOpenURL is clear that for apps linked before iOS 9 there will be a 50 scheme limit for canOpenURL.But for apps linked with iOS9 what will the maximum size of the whitelist be? (if there is a maximum). On beta 2 I've tried creating a whitelist with 1001 entries in it and canOpenURL still works.Thanks.
0
0
858
Jun ’15
Apple's canOpenURL 'solution'
Am I the only one that is a bit perplexed by the solution Apple has put in place for canOpenURL, how does adding the url schemes to a whitelist in your own application make sense? What is stopping Twitter from just adding the list of known custom URLs into their plist and continuing with their practice of using canOpenURL? It would probably make more sense for the app that is being queried to specify which apps should be allowed to query it, from a security standpoint, but I wouldn't advocate that either. I think Apple needs to come up with a better solution for the restriction on canOpenURL. I think at the very least an application that has the same Team ID as an application it wants to open should be allowed to do so without having to specify it in the whitelist.
4
0
1.5k
Jun ’15
Unable to get "Trust this computer"
I installed WatchOS 2 beta 2, unpaired and re-paired as a new device. But I can't get the Trust this computer prompt to show and therefore I can't debug my app via the debugger.Am I missing a step or something? I've rebooted my computer and restarted xcode many times and I am seeing the watch's name in the watch app scheme.
5
0
9.8k
Jun ’15
Reply to Serializing generic structs
You should check out the Developing iOS 8 Apps with Swift Stanford course in iTunesU. In the first three lectures a calculator is developed that uses enum and struct to create a stack that handles numeric and string data. Then in the first part of the lecture 5 (if memory serves correctly) an example of translating the stack to a string and back again is shown. The approach used in that course may work for you.
Topic: Programming Languages SubTopic: Swift Tags:
Jun ’15
Reply to Serializing generic structs
(returning to the top level because the text boxes are getting too narrow)I think you're all wrong! You're confusing two different problems, one major and one minor. (Generic structs are the minor one.)The major problem is that any serialization scheme, to be useful, must encode the type of each object (by which I mean an instance of a class, struct or enum) in the archive. Not only does Swift not have a way of giving something for a type that's readily archivable, it doesn't provide you with a way of getting back, at deserialization time, arbitrary types from their serialized representations. That means you're forced to translate serialized types into type literals via a great big switch statement (or equivalent). That also means that your archiving system can only represent a finite number of the infinite number of possible Swift types, and the ones it knows must be known explicitly.Incidentally, there's another complication here that you haven't considered. In general, a class name in Swi
Topic: Programming Languages SubTopic: Swift Tags:
Jun ’15
Questions/Possible issues with Advanced Operations sample code
The Advanced NSOperations (https://developer.apple.com/videos/wwdc/2015/?id=226) talk from this year was a real eye opener. I've used NSOperations in my app before but not to the extent as shown in Advanced NSOperations.I've spent a little time to translate some of the sample code from the Advanced NSOperations for my app and have started using the custom operations and queues to implement CloudKit syncing.I also took some time to read the Concurrency Programming Guide as well as the docs for NSOperation and NSOperationQueue. As I did I made some notes about things in the docs that didn't seem to match up with the sample code implementation. I'm listing them here just in case they come to anyone else:In Operation.swift, the isReady method is overwritten to support custom conditions. If the Operation is .Pending, and the super's isReady returns true, then the conditions are evaluated. If the state of the Operation is .Ready, then the operation isReady returns true if the super's isReady returns true.
18
0
5.9k
Jun ’15
Is it okay to submit multiple apps with roughly the same codebase?
Here is my situation: my client is a healthcare business with many renowned hospitals as partners, they want to develop a health related iOS app and provide services to doctors working in those hospitals. The thing is, they want to distribute the app to people in different hospitals with different names, so it will be roughly the same app, just with minor changes like the name of the app, color schemes, and hospital names inside the app, etc. but distribute to the doctors in different hospitals as different apps. So I have the following questions:1) Is it okay to take roughly the same codebase, with minor little changes but the same functionality, and submit to App Store as multiple different apps with different names like Hospital A Healthcare, Hospital B Healthcare, Hospital C Healthcare?2) If those hospitals are famous hospitals, for example let's say my client is named Beta Care and a partner is a famous hospital named Hospital A, when I submit an app named Hospital A Healthcare, do I need to pro
8
0
10k
Jul ’15
Reply to watchos 2 beta 2
Even when you do manage to boot into the beta, the battery drain issues and instability of the OS makes it impossible to work with for more than 2-3 hours at a time, which for me is just about long enough for each session of development. The only way I managed to get past this update screen was to wait until the battery was drained completely flat. Once dead plug it into a charger and wait until there is enough power for the watch to automatically turn itself on to low power mode. Once in low power mode I found that I was able to browse through settings and to very quickly go to the reset option and reset the watch. It took 3 or 4 attempts as the watch kept rebooting as I was browsing the options but as the batrtery slowely charged I was able to get to a point where I could hit that restore button. I am still encoutning issues, such as very fast battrery drain, random restars and apple logo freezes however it doesnot restart without problem. For some reason low power mode does get you into the OS and was the
Topic: App & System Services SubTopic: Core OS Tags:
Jul ’15
CI and Xcode server bot error
Hi, today I have attached a real device for the first time to my XCode server (Xcode 6.4, OS X 10.10.4), and this is what i got:Bot Issue: error. Build Service Error. Issue: Failed to build workspace CinimeKit with scheme xxxxxxxx Debug.. Integration Number: 60. Integration URL: https://xcode-server.local/xcode/bots/E3B0EB8/integrations Description: Failed to build workspace xxxxxxxx with scheme xxxxxxxx Debug.. xcodebuild: error: Failed to build workspace xxxxxxxx with scheme xxxxxxxx Release. Reason: Logic Testing UnavailableMy BOT have a debug schema and sone unit tests, if i detach the iphone everything works well. what does it mean?
3
0
1.7k
Jul ’15
Reply to Xcode 7 bots 'Integration pending' message
I ran into a similar situation. I have a few bots for different schemes-- one of the bots kicked off from a commit and I canceled it before it had finished. Unfortunately any subsequent integrations got stuck into a 'Pending' state. For various reasons, I did not want to wipe out these bots.What eventually worked was to delete all the canceled integrations (which had been stuck in the 'Pending' state) including the original integration I canceled that seems to have triggered this stuck state. After the canceled integrations were deleted, any following integrations worked as expected.
Jul ’15
Reply to swift in obj-c project archive problem
Have you tried cleaning the build folder before archiving, holding down the option key to get the Product >> Clean Build Folder... menu item?In one of the 6.3 beta versions I ran into problems with a generated header that wasn't updating/creating properly when I switched between different schemes, and maybe you are running into a similar problem?
Topic: Programming Languages SubTopic: Swift Tags:
Jul ’15
Reply to Initializing a variable causes crash
Interesting. Yeah, that's really weird. Have you checked out the Zombie Objects or Address Sanitizer features? They might be able to help you pinpoint your problem. Both are accessible when you edit your scheme, head to the Run action and click on the Diagnostics tab. After enabling them, run your app. Now when it crashes, you'll get a detailed readout on what went wrong.Say, did you check to see if anything was wrong with your source file? Take a look in the File Inspector. Maybe also create another Swift file with a function in it that does the same thing as your setup code, and call that function from your original file. Other than that, I'm just as stumped as you are.
Topic: App & System Services SubTopic: Core OS Tags:
Jul ’15
Reply to Xcode7 code completion broken
If it works in a different scheme, then the most likely cause is that the target membership of the file is incorrect, or perhaps there's something wrong in the scheme itself.Is this Swift or Obj-C?
Replies
Boosts
Views
Activity
Jun ’15
Reply to Xcode7 code completion broken
Objective-C. The target membership seems fine ... how do I check whether there's something wrong with the scheme or not? It indexes most of the files just fine ... just a few (important ones) that are off
Replies
Boosts
Views
Activity
Jun ’15
Reply to Xcode7 code completion broken
The scheme's build action specifies which targets to build. Check that the right ones are being built.Assuming that's fine, then I'd start playing around with the file contents. What happens if you deliberately introduce an error? When you remove that error? What happens if you comment out all the methods? Put them back one by one?Does the project have Enable Modules (C and Objective C) turned on? If it's off, try turning it on. If it's on, try turning it off, building, and turning it back on again.
Replies
Boosts
Views
Activity
Jun ’15
canOpenURL maximum whitelist size
Hi,The information released about canOpenURL is clear that for apps linked before iOS 9 there will be a 50 scheme limit for canOpenURL.But for apps linked with iOS9 what will the maximum size of the whitelist be? (if there is a maximum). On beta 2 I've tried creating a whitelist with 1001 entries in it and canOpenURL still works.Thanks.
Replies
0
Boosts
0
Views
858
Activity
Jun ’15
Apple's canOpenURL 'solution'
Am I the only one that is a bit perplexed by the solution Apple has put in place for canOpenURL, how does adding the url schemes to a whitelist in your own application make sense? What is stopping Twitter from just adding the list of known custom URLs into their plist and continuing with their practice of using canOpenURL? It would probably make more sense for the app that is being queried to specify which apps should be allowed to query it, from a security standpoint, but I wouldn't advocate that either. I think Apple needs to come up with a better solution for the restriction on canOpenURL. I think at the very least an application that has the same Team ID as an application it wants to open should be allowed to do so without having to specify it in the whitelist.
Replies
4
Boosts
0
Views
1.5k
Activity
Jun ’15
Unable to get "Trust this computer"
I installed WatchOS 2 beta 2, unpaired and re-paired as a new device. But I can't get the Trust this computer prompt to show and therefore I can't debug my app via the debugger.Am I missing a step or something? I've rebooted my computer and restarted xcode many times and I am seeing the watch's name in the watch app scheme.
Replies
5
Boosts
0
Views
9.8k
Activity
Jun ’15
Reply to Serializing generic structs
You should check out the Developing iOS 8 Apps with Swift Stanford course in iTunesU. In the first three lectures a calculator is developed that uses enum and struct to create a stack that handles numeric and string data. Then in the first part of the lecture 5 (if memory serves correctly) an example of translating the stack to a string and back again is shown. The approach used in that course may work for you.
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Jun ’15
Reply to Serializing generic structs
(returning to the top level because the text boxes are getting too narrow)I think you're all wrong! You're confusing two different problems, one major and one minor. (Generic structs are the minor one.)The major problem is that any serialization scheme, to be useful, must encode the type of each object (by which I mean an instance of a class, struct or enum) in the archive. Not only does Swift not have a way of giving something for a type that's readily archivable, it doesn't provide you with a way of getting back, at deserialization time, arbitrary types from their serialized representations. That means you're forced to translate serialized types into type literals via a great big switch statement (or equivalent). That also means that your archiving system can only represent a finite number of the infinite number of possible Swift types, and the ones it knows must be known explicitly.Incidentally, there's another complication here that you haven't considered. In general, a class name in Swi
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Jun ’15
Questions/Possible issues with Advanced Operations sample code
The Advanced NSOperations (https://developer.apple.com/videos/wwdc/2015/?id=226) talk from this year was a real eye opener. I've used NSOperations in my app before but not to the extent as shown in Advanced NSOperations.I've spent a little time to translate some of the sample code from the Advanced NSOperations for my app and have started using the custom operations and queues to implement CloudKit syncing.I also took some time to read the Concurrency Programming Guide as well as the docs for NSOperation and NSOperationQueue. As I did I made some notes about things in the docs that didn't seem to match up with the sample code implementation. I'm listing them here just in case they come to anyone else:In Operation.swift, the isReady method is overwritten to support custom conditions. If the Operation is .Pending, and the super's isReady returns true, then the conditions are evaluated. If the state of the Operation is .Ready, then the operation isReady returns true if the super's isReady returns true.
Replies
18
Boosts
0
Views
5.9k
Activity
Jun ’15
Is it okay to submit multiple apps with roughly the same codebase?
Here is my situation: my client is a healthcare business with many renowned hospitals as partners, they want to develop a health related iOS app and provide services to doctors working in those hospitals. The thing is, they want to distribute the app to people in different hospitals with different names, so it will be roughly the same app, just with minor changes like the name of the app, color schemes, and hospital names inside the app, etc. but distribute to the doctors in different hospitals as different apps. So I have the following questions:1) Is it okay to take roughly the same codebase, with minor little changes but the same functionality, and submit to App Store as multiple different apps with different names like Hospital A Healthcare, Hospital B Healthcare, Hospital C Healthcare?2) If those hospitals are famous hospitals, for example let's say my client is named Beta Care and a partner is a famous hospital named Hospital A, when I submit an app named Hospital A Healthcare, do I need to pro
Replies
8
Boosts
0
Views
10k
Activity
Jul ’15
Reply to watchos 2 beta 2
Even when you do manage to boot into the beta, the battery drain issues and instability of the OS makes it impossible to work with for more than 2-3 hours at a time, which for me is just about long enough for each session of development. The only way I managed to get past this update screen was to wait until the battery was drained completely flat. Once dead plug it into a charger and wait until there is enough power for the watch to automatically turn itself on to low power mode. Once in low power mode I found that I was able to browse through settings and to very quickly go to the reset option and reset the watch. It took 3 or 4 attempts as the watch kept rebooting as I was browsing the options but as the batrtery slowely charged I was able to get to a point where I could hit that restore button. I am still encoutning issues, such as very fast battrery drain, random restars and apple logo freezes however it doesnot restart without problem. For some reason low power mode does get you into the OS and was the
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Jul ’15
CI and Xcode server bot error
Hi, today I have attached a real device for the first time to my XCode server (Xcode 6.4, OS X 10.10.4), and this is what i got:Bot Issue: error. Build Service Error. Issue: Failed to build workspace CinimeKit with scheme xxxxxxxx Debug.. Integration Number: 60. Integration URL: https://xcode-server.local/xcode/bots/E3B0EB8/integrations Description: Failed to build workspace xxxxxxxx with scheme xxxxxxxx Debug.. xcodebuild: error: Failed to build workspace xxxxxxxx with scheme xxxxxxxx Release. Reason: Logic Testing UnavailableMy BOT have a debug schema and sone unit tests, if i detach the iphone everything works well. what does it mean?
Replies
3
Boosts
0
Views
1.7k
Activity
Jul ’15
Reply to Xcode 7 bots 'Integration pending' message
I ran into a similar situation. I have a few bots for different schemes-- one of the bots kicked off from a commit and I canceled it before it had finished. Unfortunately any subsequent integrations got stuck into a 'Pending' state. For various reasons, I did not want to wipe out these bots.What eventually worked was to delete all the canceled integrations (which had been stuck in the 'Pending' state) including the original integration I canceled that seems to have triggered this stuck state. After the canceled integrations were deleted, any following integrations worked as expected.
Replies
Boosts
Views
Activity
Jul ’15
Reply to swift in obj-c project archive problem
Have you tried cleaning the build folder before archiving, holding down the option key to get the Product >> Clean Build Folder... menu item?In one of the 6.3 beta versions I ran into problems with a generated header that wasn't updating/creating properly when I switched between different schemes, and maybe you are running into a similar problem?
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Jul ’15
Reply to Initializing a variable causes crash
Interesting. Yeah, that's really weird. Have you checked out the Zombie Objects or Address Sanitizer features? They might be able to help you pinpoint your problem. Both are accessible when you edit your scheme, head to the Run action and click on the Diagnostics tab. After enabling them, run your app. Now when it crashes, you'll get a detailed readout on what went wrong.Say, did you check to see if anything was wrong with your source file? Take a look in the File Inspector. Maybe also create another Swift file with a function in it that does the same thing as your setup code, and call that function from your original file. Other than that, I'm just as stumped as you are.
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Jul ’15