Search results for

“xcode github”

96,040 results found

Post

Replies

Boosts

Views

Activity

Reply to Problem with matching arrays and indexes
I apologize, it is confusing. I don't know what to do so there is no code yet. My previous attempts are snippets and are not whole. I'm looking if there is a function to do this process below before I start coding again.The values are values of the variables x and y, in this specific case the values are 3 and 5, however, the values of x and y will change every loop.As well as the fact if we convert the numbers into strings it would be pointless again, because it would be searching for x, and not searching for the actual value of x.What I was trying to say here is simply I tried the function arrayValue.containsand in order to do that .contains function, I would need to string x, which would make the .contains function search for x, instead of the actual value of x, in this example is 3.if arrayValue.contains(x){}Sorry if it's not clear, I'll do my best, since I am confused myself.
Topic: Programming Languages SubTopic: Swift Tags:
Nov ’19
Reply to guard vs control-flow-aware typing?
It is in effect the same thing. In particular, you can currently write this code (where x is a property of optional type):guard let x = x else {return} // 'x' is an unwrapped local for the rest of the scopeNote that it's not really unsafe, because you can't assign to the new 'x', and it has the same value as the old x.All that's really in question here is whether this sort of thing is always going to require an explict let x = x somewhere in the syntax, as above, or whether this in the future might be done silently by the compiler.
Topic: Programming Languages SubTopic: Swift Tags:
Jun ’15
Reply to Converting meters to millimeters
I was told the code below was the correct code to use to convert a 3d scan in meters to millimeters. I must not have it in the correct place in the code in my first post. vertex[j].x = vertex[j].x * 1000.0; vertex[j].y = vertex[j].y * 1000.0; vertex[j].z = vertex[j].z * 1000.0;
Topic: Programming Languages SubTopic: General Tags:
Nov ’16
Reply to Sign In With Apple not working with Xcode 12 beta on simulator ?
Using xcode 13. I downloaded ios Simulator 13.4 and there it works for me. Simulator ios version 14.5, and 15 it does not, no error messages, only spining wheel. Hardware works fine. The issue with this workaround, is that I have code that can only be run on 14+, so even if testing goes through for apple signin on 13.x, part of the code will not work on that ios version. Have now gone through rejected phase 3 times, although explained every time.
Oct ’21
Reply to noob error on my code, how to fix it?
I checked in code, and it compîles and works ! (Swift 2.2) (withIdentifier: userVC) let x = (withIdentifier: userVC) Swift.print(x)on console userVCEdited : it's interpreted as a tuple with a single item.I tried : let x = (withIdentifier: userVC, withSecond: Second) Swift.print(x)and get :(userVC, Second)I guess it should not work anymore in Swift4
Topic: Programming Languages SubTopic: Swift Tags:
Jun ’17
Reply to Package.resolved file is missing from the repository
Update: It appears that the main reason I'm getting this error is because one of my dependencies is failing to clone. This dependency is located in a private repository also hosted on GitHub, and I've granted authorization to this additional repo. Could this be because Xcode-Cloud is trying to look in keychain for my normal git authentication info (username and token), but it's not available on the host?
Nov ’21
Reply to Xcode Source Editor Extension - single character selection range
Hey! Your code logic isn't right.start.column is the offset of te cursor from the BEGGINING of the line, so column zero would be exactly the begining of the line, even if there are any spaces or tabs.Column zero would be right before the first letter of this sentence.So if you want to know if theres no selection you should instead check:start.column == end.column // No selectionOr if you want to check for only one character or n number of characters selected you should do this:start.column == (end.column - 1) // only one character selected start.column == (end.column - x) // only X number of characters selectedBTW, I finished my xcode extension two days ago and I'm still not able to use it in Xcode 8 final because of a **** bug. 😠 but that's another problem.Hope this helps 😉
Sep ’16
Reply to Xcode 26 RC unable to compile asset catalogs on CI
FWIW I am seeing this with my GitHub actions as well.
Replies
Boosts
Views
Activity
Sep ’25
Reply to Best ways to publish an app along with a developer partner
I think GitHub has a student program that is free if you are a student, thats what i use for my college projects, and you have a choice to make them public or private, and you can invite people to your repo like your teacher or classmates. Or you could just pay for a Github membership, or you can choose a licence for your source code.
Replies
Boosts
Views
Activity
Jul ’17
Reply to Problem with matching arrays and indexes
I apologize, it is confusing. I don't know what to do so there is no code yet. My previous attempts are snippets and are not whole. I'm looking if there is a function to do this process below before I start coding again.The values are values of the variables x and y, in this specific case the values are 3 and 5, however, the values of x and y will change every loop.As well as the fact if we convert the numbers into strings it would be pointless again, because it would be searching for x, and not searching for the actual value of x.What I was trying to say here is simply I tried the function arrayValue.containsand in order to do that .contains function, I would need to string x, which would make the .contains function search for x, instead of the actual value of x, in this example is 3.if arrayValue.contains(x){}Sorry if it's not clear, I'll do my best, since I am confused myself.
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Nov ’19
Reply to guard vs control-flow-aware typing?
It is in effect the same thing. In particular, you can currently write this code (where x is a property of optional type):guard let x = x else {return} // 'x' is an unwrapped local for the rest of the scopeNote that it's not really unsafe, because you can't assign to the new 'x', and it has the same value as the old x.All that's really in question here is whether this sort of thing is always going to require an explict let x = x somewhere in the syntax, as above, or whether this in the future might be done silently by the compiler.
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Jun ’15
Reply to Custom AVAudioUnitMIDIInstrument subclass
I wrote an example on Github and blog post on how to do this.
Topic: Media Technologies SubTopic: Audio Tags:
Replies
Boosts
Views
Activity
Feb ’16
Reply to Non-Deprecated Way to Copy Files Async?
Could you please share the github link for the sample?
Topic: UI Frameworks SubTopic: AppKit Tags:
Replies
Boosts
Views
Activity
Feb ’19
Reply to Converting meters to millimeters
I was told the code below was the correct code to use to convert a 3d scan in meters to millimeters. I must not have it in the correct place in the code in my first post. vertex[j].x = vertex[j].x * 1000.0; vertex[j].y = vertex[j].y * 1000.0; vertex[j].z = vertex[j].z * 1000.0;
Topic: Programming Languages SubTopic: General Tags:
Replies
Boosts
Views
Activity
Nov ’16
Reply to Sign In With Apple not working with Xcode 12 beta on simulator ?
Using xcode 13. I downloaded ios Simulator 13.4 and there it works for me. Simulator ios version 14.5, and 15 it does not, no error messages, only spining wheel. Hardware works fine. The issue with this workaround, is that I have code that can only be run on 14+, so even if testing goes through for apple signin on 13.x, part of the code will not work on that ios version. Have now gone through rejected phase 3 times, although explained every time.
Replies
Boosts
Views
Activity
Oct ’21
Reply to How to preview a custom View that takes bindings as inputs in its initializer?
For what it's worth, this is one of the tools in my toolset on Github.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Dec ’19
Reply to noob error on my code, how to fix it?
I checked in code, and it compîles and works ! (Swift 2.2) (withIdentifier: userVC) let x = (withIdentifier: userVC) Swift.print(x)on console userVCEdited : it's interpreted as a tuple with a single item.I tried : let x = (withIdentifier: userVC, withSecond: Second) Swift.print(x)and get :(userVC, Second)I guess it should not work anymore in Swift4
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Jun ’17
Reply to Package.resolved file is missing from the repository
Update: It appears that the main reason I'm getting this error is because one of my dependencies is failing to clone. This dependency is located in a private repository also hosted on GitHub, and I've granted authorization to this additional repo. Could this be because Xcode-Cloud is trying to look in keychain for my normal git authentication info (username and token), but it's not available on the host?
Replies
Boosts
Views
Activity
Nov ’21
Reply to Can't deploy to iPhone (not available, please reconnect the device)
Was running into the same issue with XCode 11.7 & iOS 14.0, restarting phone/mac did not help. I added Device Support files for iOS 14 under XCode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport Device support files for different iOS versions are available on github under filsv/iPhoneOSDeviceSupport Hope this is useful.
Replies
Boosts
Views
Activity
Oct ’20
Reply to Access Watch Heart Rate Sensor? Where are the docs?
search github watchOS-2-heartrate
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Jun ’15
Reply to Unresolved Spilt View problem?
I am just learning GitHub. How do I push a link?
Replies
Boosts
Views
Activity
Mar ’18
Reply to Xcode Source Editor Extension - single character selection range
Hey! Your code logic isn't right.start.column is the offset of te cursor from the BEGGINING of the line, so column zero would be exactly the begining of the line, even if there are any spaces or tabs.Column zero would be right before the first letter of this sentence.So if you want to know if theres no selection you should instead check:start.column == end.column // No selectionOr if you want to check for only one character or n number of characters selected you should do this:start.column == (end.column - 1) // only one character selected start.column == (end.column - x) // only X number of characters selectedBTW, I finished my xcode extension two days ago and I'm still not able to use it in Xcode 8 final because of a **** bug. 😠 but that's another problem.Hope this helps 😉
Replies
Boosts
Views
Activity
Sep ’16