Search results for

“xcode github”

95,412 results found

Post

Replies

Boosts

Views

Activity

Reply to What is the use of Git Hub to an app developer.
Github is a service that allows you to store any form of source code in a repository in your account. While most people use the free service for open source projects, Github has paid accounts that lets you store source code in private repositories only accessible by authorized people. The git program can access any git repositories out there including on Github and with Xcode, you can push and pull source code on Github.For a single developer, you may not really need it, but with a private account you can store your project source code on Github, access it from anywhere and use it as an offsite backup. Like if you have a desktop machine and a laptop, you can push your code to Github from the desktop, then take your laptop with you somewhere and pull down the source and keep working on it.Github has other stuff too, like gists, which are one page repos for sharing snippets of code. For example, here's one I wrote that shows how to create an Automator action
Jul ’15
Reply to Do all functions return tuples?
Jack,Is it really correct to say that Swift doesn't allow 1-element tuples?This code works without a problem in Xcode playgrounds:var x: (Int) = (5)var y: Int = 6y = xvar z: Int = xx = y + zIf you option-click on x in one of the lower lines of the playground, Xcode will gladly tell you that its type is (Int), not Int. Xcode seems to think that Int and (Int) are both valid types that can be used interchangeably.Perhaps a better question is this: Are there any named values in Swift that aren't tuples?
Topic: Programming Languages SubTopic: Swift Tags:
Jul ’15
Reply to Building macOS with App Groups using external CI/CD
The exact problem rookuuu has happens when I attempt to build in my CI pipeline with the exact same provisioning profile and key. Specifically GitHub Actions + GitHub-Hosted Runners using GitHub instructions for installing profiles. Sounds like we're in the same boat. However, I think I've found the solution. When you run xcodebuild, if it picks up a provisioning profile with the extension .mobileprovision, even though the target is macOS it runs the provisioning profile validation steps as if it was iOS. Raising the iOS specific errors about App Groups. I followed the same document which similarly mislead me into changing the file extension away from .provisionprofile, simply renaming them back in the example workflow did the trick for me. Hopefully it does for you also. I've had the GitHub docs updated to include a note that reflects this, but this is probably also an Xcode bug that it's trusting the extension of the profile over the build target?
Jun ’23
Reply to Can't build: "An unknown error has occurred"
Maybe this is too simple minded an approach - but one may want to give it a try.1. If you haven't done so already, udate your development system to OSX 10.10.5 and Xcode to released version Xcode 7.0.1.2. Open your old code in this Xcode.3. Xcode > Edit > Convert > To Latest Swift syntax let it guide through the suggested fixes4. proceed to build/debug etc.I would recommend you disbandon Xcode 6.x because it is known to have bugs that are fixed in Xcode 7.0.1.Also, Apple has stated that Xcode 6.x will not function correctly under El Capitaine.One can select what the target is, and test on the widest variety of Simulators.Let me know if this helps...Cheers
Oct ’15
Reply to Remote server seeing iPadOS web app as iPadOS 10
For those that may see this in the future, I found a great open-source iOS lockdown browser SEB/Safe Exam Browser. I have used the macOS version of SEB in the past and this GitHub URL has the SEB unified macOS/iOS/iPadOS code. This has the ingredients of being a great working example to learn from. (https://github.com/SafeExamBrowser/seb-mac) Also for SEB I ended up utilizing the below agent string for the site I was locking down: Mozilla/5.0 (iPad; CPU OS 7_1_2 like Mac OS X) AppleWebKit/537.51.2 (KHTML, like Gecko) Version/17.0 Mobile/11D257 Safari/9537.53
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Dec ’23
Reply to No Results Sidebar or Red Error Symbol
Create a new playground (menu New in Xcode) and give the name you want.you should see Hello world in the code part as well as on the right.now type below a statement, likelet x = 10print(I entered , x)you should see 10 on the right, in front of the lineand I entered 10 in the log part at bottom.Now, you’re up and running.good luck
May ’18
Reply to Test target: Timed out waiting for simulator to boot
One of the root causes of the issue is missing files in runtime which were used in the build. Description: I ran into this issue when I was running the app via XCode on Mac but the code was accessing files from GitHub. Solution: I pulled the entire package on the local Mac repository and re-ran the app, It worked. Root Cause: As the execution engine was fetching the files from Github in real-time, perhaps that is why the simulator was timed out
Oct ’21
productbuild hangs with no output in github actions
I am running into this error with productbuild in github actions where the program hangs with a specific developer id. I have verified that my certification files are properly uploaded etc. and i am able to run this without the --sign command online and with --sign offline. if i sign with a 3rd party mac developer installer: *** it will run but then crash on stapling because this isn't the actual org i want to staple and don't really need to verify that i could staple with this other license since it is my personal license and i will be leaving this job soon so setting up all my other certs is a waste of time since it doesn't solve the problem. When i use my bosses/org Developer ID Installer: *** productbuild just hangs. I am at a loss here... the acutal command running is productbuild --resources ./resources --distribution distribution.xml --sign ${{ secrets.DEVELOPER_ID_INSTALLER }} --timestamp ${{ env.ARTIFACT_NAME }}.pkg I have confirmed that my distribution file is fine etc. because I can produc
3
0
185
May ’25
Reply to how to add bitbucket to xcode9
We recently migrated from GitHub to our own internal Atlassian server for JIRA and Bitbucket, but wanted to continue to use Xcode for git management.It requires some initial steps to setup but once that is done you will be able to use Xcode as before to make commits, create branches, etc.1. Using Bitbucket create a blank repo with the project title or import a repo from GitHub.2. Follow the instructions Bitbucket gives (listed below for connivence).With Terminal Configure Git for the First Timegit config --global user.name username git config --global user.email email@address.comPushing an Untracked Project to Bitbucketcd existing-project git init git add . git commit -m Initial commit git remote add origin https://<username>@bitbucket.org/<username>/<repoName>.git git push -u origin masterPushing a Tracked Project to Bitbucketcd existing-project git remote add origin https://<username>@bitbucket.org/<username>/<repoName>.git git push -u
Apr ’18
Reply to Xcode Cloud - could not resolve package dependencies
I was able to resolve this issue by navigating to the Xcode Cloud Settings in AppStoreConnect and manually re-granting permission for the repo connected through Github. You can do this through Xcode by going to Product -> Xcode Cloud -> -> Manage Repositories. Make sure that you are also signed into the account you originally setup Xcode Could with. There should be a button next to the repositories connected that says grant . Clicking this should hopefully resolve your issue.
Jun ’22
Reply to What is the use of Git Hub to an app developer.
Github is a service that allows you to store any form of source code in a repository in your account. While most people use the free service for open source projects, Github has paid accounts that lets you store source code in private repositories only accessible by authorized people. The git program can access any git repositories out there including on Github and with Xcode, you can push and pull source code on Github.For a single developer, you may not really need it, but with a private account you can store your project source code on Github, access it from anywhere and use it as an offsite backup. Like if you have a desktop machine and a laptop, you can push your code to Github from the desktop, then take your laptop with you somewhere and pull down the source and keep working on it.Github has other stuff too, like gists, which are one page repos for sharing snippets of code. For example, here's one I wrote that shows how to create an Automator action
Replies
Boosts
Views
Activity
Jul ’15
Unable to open installed app in iPhone 5 (9.2.1) using x-code 7.2
I am new to iOS development. I developing a small application using X code 7. I installed the app in iPhone 5 but I unable to open the app after clicking (taping) on the screen. I am testing the app in iPhone 5 device connected to mac. Please give me some suggestions. Thank you in advance.
Replies
3
Boosts
0
Views
696
Activity
Feb ’16
Reply to [[NSUUID UUID] UUIDString] always returning nil
You probably need to provide more context and/or the code surrounding it. I tried it (Xcode 7 and 7.1 beta) on iOS app (simulator & device) and OS X app (Yosemite) and it works fine.
Replies
Boosts
Views
Activity
Oct ’15
Reply to Do all functions return tuples?
Jack,Is it really correct to say that Swift doesn't allow 1-element tuples?This code works without a problem in Xcode playgrounds:var x: (Int) = (5)var y: Int = 6y = xvar z: Int = xx = y + zIf you option-click on x in one of the lower lines of the playground, Xcode will gladly tell you that its type is (Int), not Int. Xcode seems to think that Int and (Int) are both valid types that can be used interchangeably.Perhaps a better question is this: Are there any named values in Swift that aren't tuples?
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Jul ’15
Reply to Building macOS with App Groups using external CI/CD
The exact problem rookuuu has happens when I attempt to build in my CI pipeline with the exact same provisioning profile and key. Specifically GitHub Actions + GitHub-Hosted Runners using GitHub instructions for installing profiles. Sounds like we're in the same boat. However, I think I've found the solution. When you run xcodebuild, if it picks up a provisioning profile with the extension .mobileprovision, even though the target is macOS it runs the provisioning profile validation steps as if it was iOS. Raising the iOS specific errors about App Groups. I followed the same document which similarly mislead me into changing the file extension away from .provisionprofile, simply renaming them back in the example workflow did the trick for me. Hopefully it does for you also. I've had the GitHub docs updated to include a note that reflects this, but this is probably also an Xcode bug that it's trusting the extension of the profile over the build target?
Replies
Boosts
Views
Activity
Jun ’23
Reply to Can't build: "An unknown error has occurred"
Maybe this is too simple minded an approach - but one may want to give it a try.1. If you haven't done so already, udate your development system to OSX 10.10.5 and Xcode to released version Xcode 7.0.1.2. Open your old code in this Xcode.3. Xcode > Edit > Convert > To Latest Swift syntax let it guide through the suggested fixes4. proceed to build/debug etc.I would recommend you disbandon Xcode 6.x because it is known to have bugs that are fixed in Xcode 7.0.1.Also, Apple has stated that Xcode 6.x will not function correctly under El Capitaine.One can select what the target is, and test on the widest variety of Simulators.Let me know if this helps...Cheers
Replies
Boosts
Views
Activity
Oct ’15
Reply to Remote server seeing iPadOS web app as iPadOS 10
For those that may see this in the future, I found a great open-source iOS lockdown browser SEB/Safe Exam Browser. I have used the macOS version of SEB in the past and this GitHub URL has the SEB unified macOS/iOS/iPadOS code. This has the ingredients of being a great working example to learn from. (https://github.com/SafeExamBrowser/seb-mac) Also for SEB I ended up utilizing the below agent string for the site I was locking down: Mozilla/5.0 (iPad; CPU OS 7_1_2 like Mac OS X) AppleWebKit/537.51.2 (KHTML, like Gecko) Version/17.0 Mobile/11D257 Safari/9537.53
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Dec ’23
Reply to No Results Sidebar or Red Error Symbol
Create a new playground (menu New in Xcode) and give the name you want.you should see Hello world in the code part as well as on the right.now type below a statement, likelet x = 10print(I entered , x)you should see 10 on the right, in front of the lineand I entered 10 in the log part at bottom.Now, you’re up and running.good luck
Replies
Boosts
Views
Activity
May ’18
Reply to Test target: Timed out waiting for simulator to boot
One of the root causes of the issue is missing files in runtime which were used in the build. Description: I ran into this issue when I was running the app via XCode on Mac but the code was accessing files from GitHub. Solution: I pulled the entire package on the local Mac repository and re-ran the app, It worked. Root Cause: As the execution engine was fetching the files from Github in real-time, perhaps that is why the simulator was timed out
Replies
Boosts
Views
Activity
Oct ’21
productbuild hangs with no output in github actions
I am running into this error with productbuild in github actions where the program hangs with a specific developer id. I have verified that my certification files are properly uploaded etc. and i am able to run this without the --sign command online and with --sign offline. if i sign with a 3rd party mac developer installer: *** it will run but then crash on stapling because this isn't the actual org i want to staple and don't really need to verify that i could staple with this other license since it is my personal license and i will be leaving this job soon so setting up all my other certs is a waste of time since it doesn't solve the problem. When i use my bosses/org Developer ID Installer: *** productbuild just hangs. I am at a loss here... the acutal command running is productbuild --resources ./resources --distribution distribution.xml --sign ${{ secrets.DEVELOPER_ID_INSTALLER }} --timestamp ${{ env.ARTIFACT_NAME }}.pkg I have confirmed that my distribution file is fine etc. because I can produc
Replies
3
Boosts
0
Views
185
Activity
May ’25
Reply to Xcode 26.0 Share Extension crashes with NSInternalInconsistencyException on iOS 26.0
After further investigation, this problem appears to be happening in iOS26.0 and fixed in the next version iOS26.1 as seen in github ShareExtensions using SLComposeServiceViewController built with Xcode 26.1 would keep crashing on iOS26.0 ShareExtensions using SLComposeServiceViewController build with Xcode 26.0 seems to work on iOS26.1
Replies
Boosts
Views
Activity
Nov ’25
Reply to how to add bitbucket to xcode9
We recently migrated from GitHub to our own internal Atlassian server for JIRA and Bitbucket, but wanted to continue to use Xcode for git management.It requires some initial steps to setup but once that is done you will be able to use Xcode as before to make commits, create branches, etc.1. Using Bitbucket create a blank repo with the project title or import a repo from GitHub.2. Follow the instructions Bitbucket gives (listed below for connivence).With Terminal Configure Git for the First Timegit config --global user.name username git config --global user.email email@address.comPushing an Untracked Project to Bitbucketcd existing-project git init git add . git commit -m Initial commit git remote add origin https://<username>@bitbucket.org/<username>/<repoName>.git git push -u origin masterPushing a Tracked Project to Bitbucketcd existing-project git remote add origin https://<username>@bitbucket.org/<username>/<repoName>.git git push -u
Replies
Boosts
Views
Activity
Apr ’18
Reply to Constant "Your session has expired" (error 1100)
For us we were running a CI job on a self-hosted github runner and encountered this error, signing in to xcode on the runner resolved this issue for us. Interestingly it wasn't necessary for macOS builds, only iOS.
Replies
Boosts
Views
Activity
Oct ’24
Should swift compiler bugs now be posted as github issues or Radars?
I have a reduced case for an automatic initialiser inheritence compiler bug, but I'm flummoxed as to where I should be posting it, as a Github issue or as a Radar/bug report?
Replies
5
Boosts
0
Views
955
Activity
Dec ’15
Reply to Xcode Cloud - could not resolve package dependencies
I was able to resolve this issue by navigating to the Xcode Cloud Settings in AppStoreConnect and manually re-granting permission for the repo connected through Github. You can do this through Xcode by going to Product -> Xcode Cloud -> -> Manage Repositories. Make sure that you are also signed into the account you originally setup Xcode Could with. There should be a button next to the repositories connected that says grant . Clicking this should hopefully resolve your issue.
Replies
Boosts
Views
Activity
Jun ’22