I am getting the following error when installing Xcode 16 Beta:
The operation couldn’t be completed. (ModelCatalog.CatalogErrors.AssetErrors error 1.)
Domain: ModelCatalog.CatalogErrors.AssetErrors
Code: 1
User Info: {
DVTErrorCreationDateKey = "2024-06-20 20:18:46 +0000";
}
Failed to find asset: com.apple.fm.language.code_safety_guardrail.base - no asset
Domain: ModelCatalog.CatalogErrors.AssetErrors
Code: 1
Xcode
RSS for tagBuild, test, and submit your app using Xcode, Apple's integrated development environment.
Post
Replies
Boosts
Views
Activity
I have a script that has not been updated in a while that compiles my application using xcodebuild. I'm getting this warning which leads me to believe that it's only building the first destination. But when I check the binary with lipo -archs it shows has having both; which I want.
--- xcodebuild: WARNING: Using the first of multiple matching destinations:
{ platform:macOS, arch:arm64, id:00006021-001071911ABBC01E, name:My Mac }
{ platform:macOS, arch:x86_64, id:00006021-001071911ABBC01E, name:My Mac }
First, why the warning if I'm trying to build a Universal binary, and can I turn this off. Or should I leave it?
Thanks!
Hi, I've just updated XCode 15.4 (15F31d) and on every second run XCoede is crashing and giving me the attached crash report.
This was not happening with my previous version Xcode 15.0.
I've attached part of the log, I cannot post the entire file because of restrictions on about attachments.
Thank you!
Log crash
Hey!
I'm facing a problem I have 0 idea how to solve it. I'm building a project with Unity 2022.3.21 for visionOS and after a lot of exhausting problems I'm having the last one, I am kinda new to Xcode.
I get the error "No Apple plug-in library path found", at the root of the project there Xcode should find the ApplePluginLibraries folder, and it's actually there with two folders inside Apple.Core and Apple.GameKit. Xcode is saying the path was not found and I can see it exists through finder.
In Search Paths > Framework Search Paths I have:
$(PROJECT_DIR)/ApplePluginLibraries/Apple.GameKit
$(PROJECT_DIR)/ApplePluginLibraries/Apple.Core
Also in Other Linker Flags I have:
-L$(PROJECT_DIR)/ApplePluginLibraries/Apple.GameKit
-L$(PROJECT_DIR)/ApplePluginLibraries/Apple.Core
I was having a few errors and the last one is: Command PhaseScriptExecution failed with a nonzero exit code, and the description says about the path not found.
My info:
MacOS: Apple M1 Pro Sonoma 14.5
Xcode: 15.4
Unity: 2022.3.21f1
Any idea?
Thanks!!
Hello,
We encountered the following error while attempting to upload our visionOS app. Please note that this is not an iOS app; we have specifically built the framework for the arm64 visionOS platform.
Incorrect Platform. You included arm64 executable “XX.app/Frameworks/XX” in your iOS bundle. Only iOS executables can be included.
Reposting (after a while) from the Swift forums - the build timeline for our project has a lot of weird gaps in the beginning - almost 15 seconds in total, which is quite a big chunk of the total build time. Is there any way to determine why they exist or how I could fix them? I hope it's just something hidden and not the build system literally doing nothing...
This is on Xcode 15.4.
To reproduce:
In Xcode, create a new project with SwiftData storage
Add a new item in the preview — everything works fine so far
Enable CloudKit sync for the target (add iCloud capability, check CloudKit, add a container)
Go back to the preview and add a new item — Xcode will now freeze
As soon as you modify the SwiftData storage, the preview freezes and the Xcode app becomes extremely slow until you either refresh the preview or restart Xcode.
After trying Xcode 16.0, we encountered an issue with dependency management with SPM. Specifically, we are unable to remove libraries or frameworks through Xcode because it causes Xcode to crash. I'm not sure what is causing this issue because I tried removing them in version 15.6, and it worked fine.
after click -, Xcode will crash.
I am using Xcode 16 and am doing a future app with SwiftData.
I have the data in a List. When I try to delete a row, it deletes and seems to save the deletion. But when I list the data again, what I deleted comes back.
Here's the code:
{
for index in indexSet {
let chat = chatLog[index]
modelContext.delete(chat)
// do {
// try modelContext.save()
//
// } catch {
//
// print("Error saving: \(error)")
//
// }
}
}
CHAT: Is a variable to hold the data.
CHATLOG: The variable in the List.
Thank you.
Dan Uff
I can't install or update any application on testflight. Profile not changed. In one time on all application I have same issue. And all members with team
We are getting the following error: "the profile can’t be installed. please try again later".
any idea what could be the cause for such an error (Occurs on many users even after reinstalling TestFlight)
Every time XCode updates now, I am forced to download the latest version of iOS. I cannot continue to develop until I have done this.
iOS is a 7+ GB download and I don't have the best internet in the world. The download often fails after a few GBs, and there is no download manager, so when that happens, I have to start the download all over again.
Coding is my living and stopping me from developing stops me from working. It never used to be like this!
Is everyone else experiencing this and as mad as I am with Apple? I was going to buy a new iPhone, but that purchase is on hold now!
I reinstall macOS system to monterey and restore from a higher version (sonoma), the xcode (version 15.4 on sonoma) can not run, so I delete it and reinstall xcode 14.2, but it always crash when start.
here is the error log when I start it in Terminal:
command:
/Applications/Xcode.app/Contents/MacOS/Xcode
error log:
Error loading required libraries. If there is an ongoing installation please wait for it to complete. Otherwise reinstall. (dlopen(@rpath/libIDEApplicationLoader.dylib, 0x0001): Symbol not found: (_$s10Foundation10CocoaErrorV13userCancelledAC4CodeVvgZ)
Referenced from: '/Library/Developer/PrivateFrameworks/CoreDevice.framework/Versions/A/CoreDevice'
Expected in: '/System/Library/Frameworks/Foundation.framework/Versions/C/Foundation')
[1] 80496 abort /Applications/Xcode.app/Contents/MacOS/Xcode
Is it planned to add ability to run Xcode test bundles using devicectl tool? If it is possible now how to achieve it?
Is there any other ways to run tests bundle .app file using command line?
Hey, I have been trying out the Xcode 16 beta's code completion for the last couple of days. I went do disable it through the settings, in the components section. I did this to go along with a tutorial and I didn't want it to help me out.
But now that I want it back. I can't find a way to enable it again.
I tried reinstalling both the beta and regular xcode, but it didn't show up again.
Wanted to ask if someone knows how to get this back. Thanks!
I'm trying to add JPEG-XL encoding/decoding capabilities to my app and haven't been able to find a trustworthy pre-compiled version. The only one I've found is in https://github.com/awxkee/jxl-coder-swift.
As a result I've been trying to compile my own iOS version from the reference implementation (https://github.com/libjxl/libjxl), having done virtually no compiling before. When I started out, my gut said, "Compiling for a different platform should be easy since it's not like I'm actually writing or modifying the implementation", but the more I research and try, the more doubtful I've become. So far I've figured out it means compiling all the dependencies (brotli, highway, libpng, skcms, etc.) too, but I've also gotten nowhere with them, having tried my hand at modifying cmake toolchains and CMakeList.txt files.
As a novice, am I biting off more than I can chew with this? Is the seemingly simple task, "Compile this C++ library for iOS" actually something that freelancers charge huge amounts for? (If so, this makes the free compiled version mentioned above even more questionable)
Any help or pointers would be greatly appreciated.
My App work well in 17.5 but Reviewer use 17.5.1 & not works in 17.5.1. I'm trying to download 17.5.1 but xcode ios latest version is 17.5.
i try to download dmg file but not found 17.5.1
I need to generate a compile_commands.json for our C++ project. I need it for static code analysis tools as well as enabling clangd usage with other editors.
I've tried two methods but it only works for some files with clangd. The logs of the clangd extension in VS Code indicate only that many files can't be compiled. If it works for a file, it's great, but sadly it's not consistent.
I've used these two approaches to generate the compile_commands.json:
using xcpretty
xcrun xcodebuild -projectmyproject.xcodeproj -scheme myscheme clean build CODE_SIGNING_ALLOWED=NO | xcpretty -r json-compilation-database -o build/compile_commands.json
the recommended way by sonarcloud
xcrun xcodebuild -project myproject.xcodeproj -scheme myscheme \
-configuration Debug clean build CODE_SIGNING_ALLOWED=NO OTHER_CFLAGS="\$(inherited) -gen-cdb-fragment-path \$(PROJECT_DIR)/CompilationDatabase"
sed -e '1s/^/[\'$'\n''/' -e '$s/,$/\'$'\n'']/' MacOS/Source/CompilationDatabase/*.json > MacOS/Source/compile_commands.json
Is there something missing or are there better ways to generate the compile_commands.json without having to write a full cmake definition?
Hi
I have updated my Xcode version to 15.4 and now notice that the "po" command of the console is not working properly. It shows the below error whenever try to print any variable data
(lldb) po sectionItem.collectionType
error: Expression evaluation failed. Retrying without binding generic parameters
error: Could not evaluate the expression without binding generic types.
Do you have any idea why is it happening and the solution of it?
I am running Sonoma 14.5 on an Intel MacBook Pro. I had installed Xcode 15 previously and wanted to play with Swift Command Line tools. I created the project and had Xcode create a Git repo. When I make changes, they are marked as modified but when I go to the Source Control manager, my username and email show up, but the commit button is disabled. I tried creating a new test project and it has the same problem. I followed the instructions in StackOverflow and in other developer forum posts. I manually updated the git config from the terminal. I also went in and confirmed that they show up in Xcode -> Settings -> Source Control -> Git. As I mentioned before, user name and email are showing in Xcode.
I can commit the changes in Terminal, but adding new changes still doesn't enable the commit button. I manually staged the files and it still didn't fix the problem. I created a new project and did not have Xcode create the git repo and then manually created the git repo from Terminal. Same problem.
I tried restarting Xcode and then rebooting the computer. I even uninstalled Xcode and reinstalled it. Still has the same problem.