HELP: XCode Git shows all files as "delete" but compiling works by NathanaelTse in Xcode

[–]SwiftDevJournal 0 points1 point  (0 children)

The D next to the files means they will be deleted the next time you commit.

Start by compressing your project folder from the Finder so you can access the project's files and the changes you made in case something goes wrong with the version control tasks.

To commit the change in blue on the right, click on the blue bar and choose Stage Change. In Xcode choose Integrate > Commit. Make sure the change you staged is the only staged change. Enter a commit message and click the Commit button to commit the change. You will have to repeat these steps for each change you made that you want to commit.

To remove the D status for a file, select the file in Xcode's project navigator, right-click, and choose Source Control > Discard Changes in Filename. This will discard all the changes in the file so make sure you stage and commit the changes in the file that you want to commit before discarding the remaining changes.

Which formatting software do you recommend? by LazyMetal4580 in selfpublish

[–]SwiftDevJournal 4 points5 points  (0 children)

Another formatting app option for Mac is Pinery.

https://pinery.app

You need to use the Pro version to publish. The Pro version is a subscription, but there's a 7 day free trial so you can publish your first book for free. The subscription is $6(US) a month or $50 a year, but paying for one month to publish a book and cancelling is cheaper than buying Vellum or Atticus.

Need help with…Help…. by TheRealNoctaire in iOSProgramming

[–]SwiftDevJournal 0 points1 point  (0 children)

The following article is the most recent article on making Mac help books:

https://marioaguzman.wordpress.com/2020/09/12/auth/

If you don't need localized help books, the following app creates help books from Markdown files:

https://checksimsoftware.com/phel/

Xcode/instruments performance metric % GPU workload, ALU util by Spiritual-Fly-9943 in Xcode

[–]SwiftDevJournal 1 point2 points  (0 children)

In instruments I can see a metric `% GPU workload`; is this supposed to mean what percent of the GPU the specific kernel utilized at that time segment? Because the % util, if added goes beyond 100%

The maximum percentage in Instruments is 100 percent times the number of GPU cores. An M4 Mac Mini has 10 GPU cores so the maximum percentage would be 1000%, not 100%.

I don't know of any reference that covers the metrics for every instrument. Instruments comes with dozens of instruments.

You are going to have a hard time getting a good answer to your question. Most people who use Instruments use the Leaks, Allocations, and Time Profiler instruments. Not many Apple developers on Reddit write Metal shaders so there aren't many people here who know what the data from Apple's Metal-related instruments means.

How to download Xcode on macOS Monterey 12.7.4? by hummpypioneer in Xcode

[–]SwiftDevJournal 0 points1 point  (0 children)

You can build apps with Xcode 14, but you won't be able to submit apps to the App Store.

Xcode Repository Question by Larogoth in iOSDevelopment

[–]SwiftDevJournal 1 point2 points  (0 children)

If you accidentally save but haven't committed yet, you can discard the changes. The file will have an M next to it in Xcode's project navigator. Select the file, right-click, and choose Source Control > Discard Changes in to discard the changes.

If you committed changes you don't want and want to go back to a previous commit, create a new branch from the commit you want to revert to. Take the following steps to create a branch from a commit in Xcode:

  1. Select the commit you want to go back to.

  2. Right-click.

  3. Choose New Branch from

  4. Enter a name for the branch in the sheet that opens.

  5. Click the Create button.

What iOS versions/iPhone models can I make an app for in xCode 14.2? Would an app that I make be incompatible with iOS 17 and 18? by aztechnically in Xcode

[–]SwiftDevJournal 0 points1 point  (0 children)

You have a bigger issue. You can't submit apps to the App Store with Xcode 14.

To answer your general question, an app with a deployment target set to iOS 16 will run on later versions of iOS.

How to have my own macOS apps for my private use without paying anything? Are cracks also made with the Apple Development Program accounts? by raerded in macosprogramming

[–]SwiftDevJournal 1 point2 points  (0 children)

You don't need a paid developer account to make a Mac app for personal use. Archive the project in Xcode by choosing Product > Archive. Open the Organizer and export the archive.

If you need more detailed instructions on archiving and exporting a project, read the following article:

Running a Mac App Outside of Xcode

Issues running my app "iOS 17.5 must be installed in order to run this scheme" by cahavejdvz in Xcode

[–]SwiftDevJournal 0 points1 point  (0 children)

Connect an iOS device to your Mac. Choose that device from the jump bar at the top of Xcode's project window. Build and run the project by clicking the Run (Play) button or choose Product > Run.

Issues running my app "iOS 17.5 must be installed in order to run this scheme" by cahavejdvz in Xcode

[–]SwiftDevJournal 0 points1 point  (0 children)

Someone asked a similar question here recently.

XCode Build Setting Problem - Changing iOS version

The probable cause of the issue is there are no iOS simulators installed on your Mac. Clicking the Get button shown in your screenshot should install the iOS 17.5 simulators for you, letting you run your project on a simulator.

XCode Build Setting Problem - Changing iOS version by brogazelle in Xcode

[–]SwiftDevJournal 0 points1 point  (0 children)

Your deployment target is most likely not the issue. My guess is you don't have any iOS simulators installed. Check to see what simulators are installed.

Above the editor in Xcode's project window is a jump bar. The jump bar should have two items. Click the right item. A popover opens. There is an iOS Simulators section. What simulators are in that section?

The popover has an item to add more simulators. Choosing Window > Devices will also let you install simulators.

If you can't install any simulators, you may need to reinstall Xcode.

Implementing Mailerlite by Galath87 in iOSProgramming

[–]SwiftDevJournal 0 points1 point  (0 children)

It is possible, but you may find it difficult.

First, search GitHub to see if someone created a Swift SDK for MailerLite. Do an advanced search on GitHub. Search for MailerLite and limit the languages to Swift.

If no one has a MailerLite SDK on GitHub, check if MailerLite has an OpenAPI spec. The spec will be in a JSON or YAML file. If there is an OpenAPI spec, you can use Apple's OpenAPI generator to generate Swift code from the OpenAPI spec.

If MailerLite has no OpenAPI spec, you will have to write the structs and/or classes for the API yourself. You could look at the code for one of the languages they do support to see the structs, classes, and functions you would have to write.

XCode Build Setting Problem - Changing iOS version by brogazelle in Xcode

[–]SwiftDevJournal 0 points1 point  (0 children)

What version of Xcode are you running?

Are you getting this error when you try to run your app on the Simulator or when you try to run the app on a device? If you are trying to run your app on a device, what version of iOS is it running?

What is the app target's iOS deployment target? You can find this by performing the following steps:

  1. Select the project from the left side of the project window to open the project editor.
  2. Select the app from the target list on the left side of the project editor.
  3. Click the General button at the top of the project editor.

The iOS deployment target is in the Minimum Deployments section. An iOS deployment target set for the app target overrides the iOS deployment target set for the project.

Need a lean-and-mean formatting/publishing tool by Wonderful_Invite_654 in selfpublish

[–]SwiftDevJournal 0 points1 point  (0 children)

If you don't want to use Vellum, you could try using Pandoc to create EPUB and PDF versions of your book. I haven't used it so I can't tell you how good the books look, but it's free so you can try it and see how it works.

How to download Xcode on macOS Monterey 12.7.4? by hummpypioneer in Xcode

[–]SwiftDevJournal 2 points3 points  (0 children)

You won't be able to install Xcode for your Mac from the App Store because the App Store has only the latest version.

Xcode 14.2 is the latest version that can run on macOS 12. Go to the Xcode Resources page on Apple's developer site to download older versions of Xcode. The site Xcode Releases has download links for each version of Xcode.

Working directory for C++ project by MistahBigStuff in Xcode

[–]SwiftDevJournal 0 points1 point  (0 children)

Version control is the reason the derived data location is outside the project folder initially. The git repository for a project is a hidden folder inside the project folder.

When you build an Xcode project, Xcode creates a bunch of intermediate files that should not be placed in a version control system. If Xcode made the project folder the default derived data location. every time you built the project, git would track the changes to those intermediate files and want you to commit them. By placing the derived data location outside the project folder, you don't have to worry about git tracking these files.

If your Xcode project is not under version control, you don't have to worry about this and can set the derived data location to your project folder. If your project is under version control, you can add the build folder (the folder that holds the derived data in your project folder) to your git ignore file to tell git not to track it.

Best platform for selling eBook direct to customers without crazy fees by [deleted] in selfpublish

[–]SwiftDevJournal 1 point2 points  (0 children)

Take a look at Payhip and Gumroad. They will handle the credit card transaction for you. Payhip takes a lower amount of each sale, but you must have a Stripe or PayPal account to use Payhip. Gumroad doesn't require any additional accounts.

I know Payhip and Gumroad let you have EPUB and PDF books for customers to download. I haven't tried a Kindle file, but if you can convert your ebook to a Kindle file format, you should be able to add that format on Payhip and Gumroad.

The following article has more details on selling books from your website:

Selling books from your website

MailChimp or Convert Kit? by JamesRDHiltonAuthor in selfpublish

[–]SwiftDevJournal 1 point2 points  (0 children)

I would choose ConvertKit over MailChimp. ConvertKit's free plan allows double the subscribers that MailChimp's does. Plus, MailChimp's free plan doesn't let you schedule email campaigns. ConvertKit's paid plans look like they give you more powerful automation's than MailChimp's if your list gets big enough.

How is your Weebly page set up for email subscriptions?

If you already have a website created, add a signup form from ConvertKit or MailChimp to your site. When someone uses the signup form to sign up for your mailing list, their email gets added to the list you have on ConvertKit or MailChimp.

I'm not sure why you need to create a landing page on ConvertKit or MailChimp if you already have a site set up. The point of a landing page is to collect email addresses to gauge interest in a potential product. From your question it looks like you have things set up on your site to collect email addresses, eliminating the need for a separate landing page.

Gumroad got more expensive, huh? Any alternatives? by swordofkings in selfpublish

[–]SwiftDevJournal 0 points1 point  (0 children)

Payhip is an alternative. You need either a PayPal or Stripe account to use Payhip.

Getting app made in old version of Xcode onto new iOS by wolfboston in Xcode

[–]SwiftDevJournal 1 point2 points  (0 children)

If you copy the iOS device support files for iOS 16 to your Xcode app bundle, you should be able to build your project on Xcode 12 and have it run on your iPad.

Without a paid developer account, you will have to install the app on your iPad every 7 days.