Search results for

“xcode github”

97,552 results found

Post

Replies

Boosts

Views

Activity

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 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 Implementing deprecated method
@Clude31 thank you for your reply. To be honest I am not an app developer. This(Linphone) is an opensource application. Just downloaded and compiled through xcode. Then I check the latest source repository from github the willAnimateRotationToInterfaceOrientation still exist.if I just replace this will it be fixed?- (void)viewWillTransitionToSize:(CGSize)size withTransitionCoordinator:(id<UIViewControllerTransitionCoordinator>)coordinator;Could you plese advise me..I'll be very gateful to you.
Jun ’18
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 Problem with GL in xcode
OpenGL support was retired back around macOS 10.14. Various of the GL support was retired back around OS X 10.9, and GLUT (OpenGL Utility Toolkit) was then used. How much code-level work do you want to do here? You can try setting your deployment target version back in Xcode. Maybe that gets you working? Or can make some code changes: maybe one or the other of the following helps pick up the necessary GL definitions: #include #include
Topic: App & System Services SubTopic: Core OS Tags:
Jan ’23
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 On the short-circuit of AND operator
a. What is the error?b. The second condition is not evaluated, but it's still compiled.c. It may depend on what your real code is. If you really wrote the sub-expression 1/0, it seems reasonable for the compiler to tell you that's wrong. If you wrote: let x = … let y = ... if x > 0 && y / x == 0 { … }then there shouldn't be an error message. If you wrote: let x = 0 let y = ... if x > 0 && y / x == 0 { … }then the compiler should tell you that the condition is always false.Etc.
Topic: Programming Languages SubTopic: Swift Tags:
Jun ’16
Reply to tvOS 10.2 beta - Strange top shelf behaviour
Okay,some combined StackOverflow and Github results helped me to use xCode 8.2 with tvOS 10.2:From StackOverflow: You need to copy the iPhoneOS5.1.sdk to the directory /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.1.sdk and iPhoneSimulator5.1.sdk to /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.1.sdk (You'll need to restart Xcode to be able to select the SDKs in the Base SDK build option.)And from Github: // The trick is to link the DeviceSupport folder from the beta to the stable version. ln -s /Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/10.3 (14E5230d)/ /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport // Then restart Xcode and reconnect your devices. You will need to do that for every beta of future iOS versionsMaybe the latter one (of course adapted for Apple T
Topic: App & System Services SubTopic: Core OS Tags:
Feb ’17
Reply to develop 1 project on 2 macs?
Alright I have purchased a GitHub monthly membership and I don't know how to proceed. I created a private repo called iOS Projects and it generated a hyperlink to the repo.first think I need to know is how is a repo different from an xcode project? does a repo hold many xcode projects or is 1 repo meant to be for 1 project.Next, I see two places in xcode that take in GIT info.xcode>preference>accounts>add repoSource Control>Project Name <master> >configure Project Name>Remotes.Please help me out as to what I am supposed to do? Thanks...
Sep ’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:
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 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 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 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 Implementing deprecated method
@Clude31 thank you for your reply. To be honest I am not an app developer. This(Linphone) is an opensource application. Just downloaded and compiled through xcode. Then I check the latest source repository from github the willAnimateRotationToInterfaceOrientation still exist.if I just replace this will it be fixed?- (void)viewWillTransitionToSize:(CGSize)size withTransitionCoordinator:(id<UIViewControllerTransitionCoordinator>)coordinator;Could you plese advise me..I'll be very gateful to you.
Replies
Boosts
Views
Activity
Jun ’18
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 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 Problem with GL in xcode
OpenGL support was retired back around macOS 10.14. Various of the GL support was retired back around OS X 10.9, and GLUT (OpenGL Utility Toolkit) was then used. How much code-level work do you want to do here? You can try setting your deployment target version back in Xcode. Maybe that gets you working? Or can make some code changes: maybe one or the other of the following helps pick up the necessary GL definitions: #include #include
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Jan ’23
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
Reply to On the short-circuit of AND operator
a. What is the error?b. The second condition is not evaluated, but it's still compiled.c. It may depend on what your real code is. If you really wrote the sub-expression 1/0, it seems reasonable for the compiler to tell you that's wrong. If you wrote: let x = … let y = ... if x > 0 && y / x == 0 { … }then there shouldn't be an error message. If you wrote: let x = 0 let y = ... if x > 0 && y / x == 0 { … }then the compiler should tell you that the condition is always false.Etc.
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Jun ’16
Reply to tvOS 10.2 beta - Strange top shelf behaviour
Okay,some combined StackOverflow and Github results helped me to use xCode 8.2 with tvOS 10.2:From StackOverflow: You need to copy the iPhoneOS5.1.sdk to the directory /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.1.sdk and iPhoneSimulator5.1.sdk to /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.1.sdk (You'll need to restart Xcode to be able to select the SDKs in the Base SDK build option.)And from Github: // The trick is to link the DeviceSupport folder from the beta to the stable version. ln -s /Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/10.3 (14E5230d)/ /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport // Then restart Xcode and reconnect your devices. You will need to do that for every beta of future iOS versionsMaybe the latter one (of course adapted for Apple T
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Feb ’17
Reply to develop 1 project on 2 macs?
Alright I have purchased a GitHub monthly membership and I don't know how to proceed. I created a private repo called iOS Projects and it generated a hyperlink to the repo.first think I need to know is how is a repo different from an xcode project? does a repo hold many xcode projects or is 1 repo meant to be for 1 project.Next, I see two places in xcode that take in GIT info.xcode>preference>accounts>add repoSource Control>Project Name <master> >configure Project Name>Remotes.Please help me out as to what I am supposed to do? Thanks...
Replies
Boosts
Views
Activity
Sep ’15
Reply to Xcode Testing Help
It sounds like you want an SCM system. I suggest GitHub.
Replies
Boosts
Views
Activity
Jun ’17