Post

Replies

Boosts

Views

Activity

Reply to Search path problem with XCode 9.4.1
Xcode has a Search Paths collection of build settings where you can add search paths for headers and libraries. Select the project file from the project navigator on the left side of the project window to open the project editor. Select the project from the left side of the project editor. Click the Build Settings button on the top of the project editor to access the build settings. Entering Search Paths in the search field will show the Search Paths collection.
Nov ’21
Reply to Xcode Single Executable File in C
If you are writing lots of small programs for a C programming course, you are better off using a text editor like VSCode, Sublime Text, BBEdit, or TextMate to write your code instead of Xcode. Xcode requires a project to create an executable file. You can't just create a C file in Xcode and run it. I know TextMate has a C bundle that lets you run your programs from inside TextMate by choosing Bundle > C > Run. I'm sure the other text editors I mentioned have ways to run your programs from the editor.
Nov ’21
Reply to XCODE about distribute MINI6?
My guess is Xcode 11.4 does not support iOS devices introduced after Xcode 11.4's release, which was March 24, 2020. The iPad Mini 6 came out in 2021. Do you have another iOS device introduced after March 2020 to test my guess? You most likely need to update to a newer Xcode version to install your app on the iPad Mini 6.
Nov ’21
Reply to Best way to integrate different developemnt directions/branches of one project
Place your project under version control. In Xcode choose Source Control > New Git Repositories to place your project under version control. Press Cmd-2 to access Xcode's source control navigator. From the source control navigator you can create branches for your project. If you need a more detailed explanation on Xcode's version control features, take a look at the book at the following page: swiftdevjournal.com/version-control-book/ There are also alternatives to using Xcode for working with git. The following page has a list of git GUI clients: git-scm.com/downloads/guis
Nov ’21
Reply to Drag and Drop Activity
Go to a search engine and search for SpriteKit drag. You will find several articles on dragging and dropping SpriteKit sprites. The articles assume you know some Swift. If you find the material in those articles too difficult, I recommend going through the free 100 day course at Hacking with Swift. One of the projects in the course is a SpriteKit game. After going through the course, you will know enough to follow the articles on drag and drop with SpriteKit.
Topic: Graphics & Games SubTopic: SpriteKit Tags:
Dec ’21
Reply to How to provide a rich text WYSIWYG to user?
The SwiftUI TextEditor view does not currently support rich text. You will have to wrap either UITextView (iOS) or NSTextView (Mac) using the UIViewRepresentable or NSViewRepresentable protocols. Search for UIViewRepresentable in a search engine to find articles on how to do this. You may also find the following article helpful even though it doesn't deal specifically with rich text: swiftdevjournal.com/using-text-views-in-a-swiftui-app/
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Dec ’21
Reply to Is there any way to prevent a folder (Group) from building/executing?
What you need is a folder reference for your temporary files instead of a group. With a folder reference the files in the folder get copied into the app bundle when building the project. With a group Xcode tries to compile the files, which isn't going to work well with .txt files. I don't see any way in Xcode to convert a group to a folder reference in the project navigator on the left side of the project window. Maybe someone else knows a way to do this and will answer, but there are a couple of things you can do to fix your issue. One thing you can do is add a folder reference to your project. Create a folder for the temporary files in the Finder. Copy your files into that folder. In Xcode choose File > Add Files to ProjectName. Select the folder you created in the Open panel. In the sheet there is an Added folders section. Choose Create folder references. Click the Add button to finish adding the folder. After adding the folder reference you can delete the group from the left side of the project window. An alternative thing to do is to add the group's files to the app target's Copy Bundle Resources build phase and remove it from the Compile Sources build phase. Select the project file from the left side of the project window to open the project editor. Select your app target from the list of targets on the left side of the project editor. Click the Build Phases button at the top of the project editor. Click the Add button at the bottom the Copy Bundle Resources build phase to add a file to the build phase. Select the files in your group from the sheet and click the Add button. If any of your txt files are in the Compile Sources section, select them and click the Remove (minus) button to remove them from that build phase.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Dec ’21
Reply to Help with SpritKit's Tile Set in SwiftUI. Looking for suggestions
The most up to date book on SpriteKit is the book Apple Game Frameworks and Technologies. It has a chapter on working with tile maps. pragprog.com/titles/tcswift/apple-game-frameworks-and-technologies/ A free book on SpriteKit is Ray Wenderlich's book 2D Apple Games by Tutorials. It has two chapters on tile maps. The book is older. The SpriteKit material is still relevant. The book uses an older version of Xcode so you can't blindly follow their instructions on recent Xcode versions. github.com/raywenderlich/deprecated-books Both of these books assume you have some experience in Swift. If you need to learn about Swift and iOS development, Hacking with Swift has a free 100 day course on SwiftUI. One of the projects you build in the course is a SpriteKit game, but I don't think it uses tile maps.
Topic: Graphics & Games SubTopic: SpriteKit Tags:
Jan ’22
Reply to SwiftUI Image does not display image from existing file
The image does not display because of a file permissions problem. If I turn on the App Sandbox and give the app Read access to the Pictures folder, the cover image appears when I open the metadata editor.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Oct ’21
Reply to Search path problem with XCode 9.4.1
Xcode has a Search Paths collection of build settings where you can add search paths for headers and libraries. Select the project file from the project navigator on the left side of the project window to open the project editor. Select the project from the left side of the project editor. Click the Build Settings button on the top of the project editor to access the build settings. Entering Search Paths in the search field will show the Search Paths collection.
Replies
Boosts
Views
Activity
Nov ’21
Reply to Xcode Single Executable File in C
If you are writing lots of small programs for a C programming course, you are better off using a text editor like VSCode, Sublime Text, BBEdit, or TextMate to write your code instead of Xcode. Xcode requires a project to create an executable file. You can't just create a C file in Xcode and run it. I know TextMate has a C bundle that lets you run your programs from inside TextMate by choosing Bundle > C > Run. I'm sure the other text editors I mentioned have ways to run your programs from the editor.
Replies
Boosts
Views
Activity
Nov ’21
Reply to XCODE about distribute MINI6?
My guess is Xcode 11.4 does not support iOS devices introduced after Xcode 11.4's release, which was March 24, 2020. The iPad Mini 6 came out in 2021. Do you have another iOS device introduced after March 2020 to test my guess? You most likely need to update to a newer Xcode version to install your app on the iPad Mini 6.
Replies
Boosts
Views
Activity
Nov ’21
Reply to XCODE about distribute MINI6?
Do you have this information for reference? No, I do not. That is why I said in my first reply that I was guessing. Read the comment to my earlier answer from an Apple engineer. You must update to Xcode 13 to test your app on the iPad Mini 6.
Replies
Boosts
Views
Activity
Nov ’21
Reply to Add addtional document type
There's an Add (+) button at the bottom of your screenshot. Click the Add button to add a new document type.
Replies
Boosts
Views
Activity
Nov ’21
Reply to Best way to integrate different developemnt directions/branches of one project
Place your project under version control. In Xcode choose Source Control > New Git Repositories to place your project under version control. Press Cmd-2 to access Xcode's source control navigator. From the source control navigator you can create branches for your project. If you need a more detailed explanation on Xcode's version control features, take a look at the book at the following page: swiftdevjournal.com/version-control-book/ There are also alternatives to using Xcode for working with git. The following page has a list of git GUI clients: git-scm.com/downloads/guis
Replies
Boosts
Views
Activity
Nov ’21
Reply to Why The Installed App's Size Showed By The Device Setting-StorageSpace Page Is Larger Than The Size On The AppStore Detail Page?
The app file you are downloading from the App Store is compressed. When you install the app on your device, the app file expands. That's why the app file size on your device is larger than the size on the App Store page.
Topic: Business & Education SubTopic: General Tags:
Replies
Boosts
Views
Activity
Nov ’21
Reply to How do I call scenes without using sks files in Objective-C?
What part of the Stack Overflow answer didn't work? What did you try that didn't work?. If you look at the SKScene class documentation in Xcode, there's an init function to create a scene in code without using a .sks file.
Topic: Graphics & Games SubTopic: SpriteKit Tags:
Replies
Boosts
Views
Activity
Nov ’21
Reply to Drag and Drop Activity
Go to a search engine and search for SpriteKit drag. You will find several articles on dragging and dropping SpriteKit sprites. The articles assume you know some Swift. If you find the material in those articles too difficult, I recommend going through the free 100 day course at Hacking with Swift. One of the projects in the course is a SpriteKit game. After going through the course, you will know enough to follow the articles on drag and drop with SpriteKit.
Topic: Graphics & Games SubTopic: SpriteKit Tags:
Replies
Boosts
Views
Activity
Dec ’21
Reply to Xcode 13.1?
Go to the Xcode Releases site (xcodereleases.com) to find a download link for Xcode 13.1.
Replies
Boosts
Views
Activity
Dec ’21
Reply to How to provide a rich text WYSIWYG to user?
The SwiftUI TextEditor view does not currently support rich text. You will have to wrap either UITextView (iOS) or NSTextView (Mac) using the UIViewRepresentable or NSViewRepresentable protocols. Search for UIViewRepresentable in a search engine to find articles on how to do this. You may also find the following article helpful even though it doesn't deal specifically with rich text: swiftdevjournal.com/using-text-views-in-a-swiftui-app/
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Dec ’21
Reply to Is there any way to prevent a folder (Group) from building/executing?
What you need is a folder reference for your temporary files instead of a group. With a folder reference the files in the folder get copied into the app bundle when building the project. With a group Xcode tries to compile the files, which isn't going to work well with .txt files. I don't see any way in Xcode to convert a group to a folder reference in the project navigator on the left side of the project window. Maybe someone else knows a way to do this and will answer, but there are a couple of things you can do to fix your issue. One thing you can do is add a folder reference to your project. Create a folder for the temporary files in the Finder. Copy your files into that folder. In Xcode choose File > Add Files to ProjectName. Select the folder you created in the Open panel. In the sheet there is an Added folders section. Choose Create folder references. Click the Add button to finish adding the folder. After adding the folder reference you can delete the group from the left side of the project window. An alternative thing to do is to add the group's files to the app target's Copy Bundle Resources build phase and remove it from the Compile Sources build phase. Select the project file from the left side of the project window to open the project editor. Select your app target from the list of targets on the left side of the project editor. Click the Build Phases button at the top of the project editor. Click the Add button at the bottom the Copy Bundle Resources build phase to add a file to the build phase. Select the files in your group from the sheet and click the Add button. If any of your txt files are in the Compile Sources section, select them and click the Remove (minus) button to remove them from that build phase.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Dec ’21
Reply to Do I need to have macos 12.x on my machine to build macos app that can run on 12.x
You do not need to be running macOS 12 to develop an app that runs on macOS 12. If you use something that Apple added in macOS 12, such as URLSession's data method, you won't be able to run the app on macOS 11. Avoid using anything added in macOS 12, and you can develop your Mac app on macOS 11.
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Dec ’21
Reply to Help with SpritKit's Tile Set in SwiftUI. Looking for suggestions
The most up to date book on SpriteKit is the book Apple Game Frameworks and Technologies. It has a chapter on working with tile maps. pragprog.com/titles/tcswift/apple-game-frameworks-and-technologies/ A free book on SpriteKit is Ray Wenderlich's book 2D Apple Games by Tutorials. It has two chapters on tile maps. The book is older. The SpriteKit material is still relevant. The book uses an older version of Xcode so you can't blindly follow their instructions on recent Xcode versions. github.com/raywenderlich/deprecated-books Both of these books assume you have some experience in Swift. If you need to learn about Swift and iOS development, Hacking with Swift has a free 100 day course on SwiftUI. One of the projects you build in the course is a SpriteKit game, but I don't think it uses tile maps.
Topic: Graphics & Games SubTopic: SpriteKit Tags:
Replies
Boosts
Views
Activity
Jan ’22