For my app I've created a Dictionary that I want to persist using AppStorage
In order to be able to do this, I added RawRepresentable conformance for my specific type of Dictionary. (see code below)
typealias ScriptPickers = [Language: Bool]
extension ScriptPickers: @retroactive RawRepresentable where Key == Language, Value == Bool {
public init?(rawValue: String) {
guard let data = rawValue.data(using: .utf8),
let result = try? JSONDecoder().decode(ScriptPickers.self, from: data)
else {
return nil
}
self = result
}
public var rawValue: String {
guard let data = try? JSONEncoder().encode(self), // data is Data type
let result = String(data: data, encoding: .utf8) // coerce NSData to String
else {
return "{}" // empty Dictionary represented as String
}
return result
}
}
public enum Language: String, Codable, {
case en = "en"
case fr = "fr"
case ja = "ja"
case ko = "ko"
case hr = "hr"
case de = "de"
}
This all works fine in my app, however trying to run any tests, the build fails with the following:
Conflicting conformance of 'Dictionary<Key, Value>' to protocol 'RawRepresentable'; there cannot be more than one conformance, even with different conditional bounds
But then when I comment out my RawRepresentable implementation, I get the following error when attempting to run tests:
Value of type 'ScriptPickers' (aka 'Dictionary<Language, Bool>') has no member 'rawValue'
I hope Joseph Heller is out there somewhere chuckling at my predicament
any/all ideas greatly appreciated
Xcode
RSS for tagBuild, test, and submit your app using Xcode, Apple's integrated development environment.
Posts under Xcode tag
200 Posts
Sort by:
Post
Replies
Boosts
Views
Activity
This crash report for one of my apps was downloaded by Xcode. Apparently the app crashed while releasing an object of type Scan.File, which is a Swift class held in an array in the Scan.Directory class. I'm not doing any manual reference counting or low-level stuff with that object.
What could cause such a crash?
crash.crash
in xcode i have select the developer team. but show some error that is here,
"Communication with Apple failed
Your team has no devices from which to generate a provisioning profile. Connect a device to use or manually add device IDs in Certificates, Identifiers & Profiles. https://developer.apple.com/account/"
and show this error also
"No profiles for 'com.kuntaldoshi.homeautomation' were found
Xcode couldn't find any iOS App Development provisioning profiles matching 'com.kuntaldoshi.homeautomation'."
When I try to compile with XCode an app that is about 10 years old gives me the following compiler errors in JSONModel.h header file. There are only 4 lines in that file.
Content of file with the error messages.
XSym <- Uknown type name ‘Xsym’
0075 <- Expected identifier or ‘(’
a7b090c047283ff76fc7f1def7ba7425
../../../JSONModel/JSONModel/JSONModel/JSONModel.h
The app was originally compiled wit XCode 3.2, targeting iPhone 7
Now I am using XCode 16, targeting iPhone 12.
Original coder is unaccessible.
I am very new to this environment and any guidance / assistance is greatly appreciated.
Please let me know if it is more appropriate to post this somewhere else.
When working on a project, I would like to open a file from a previous project in a side-by-side window for reference, so I can view and adapt parts of the previous file into a file in the current project. I don't want the previous file to be part of the current project. Is this possible? If so, how?
I am on Xcode 16.2 and running a simulator for iOS 18.2. Previously, I was on Xcode 15.x and running iOS 17.4 sims. This problem did not occur for me on iOS 17.4. Sample code is as follows:
import SwiftUI
import PhotosUI
struct ContentView: View {
@StateObject var imagePicker2 = ImagePicker()
var body: some View {
ScrollView {
VStack {
Image(systemName: "globe")
.imageScale(.large)
.foregroundStyle(.tint)
Text("Hello, world!")
.background(Color.orange)
.padding(.bottom, 75)
PhotosPicker(selection: $imagePicker2.imageSelection, matching: .images, photoLibrary: .shared()) {
Label("", systemImage: "photo")
}
.font(.system(size: 55))
.padding(.bottom, 55)
if let image = imagePicker2.image {
HStack {
image
.resizable()
.frame(width:75, height:75)
.scaledToFit()
.overlay(Rectangle().stroke(Color.teal, lineWidth: 2))
}
}
}
.padding()
}
}
}
import SwiftUI
import PhotosUI
@MainActor
class ImagePicker: ObservableObject {
@Published var unableToLoad: Bool = false
@Published var image: Image?
@Published var myUIImage: UIImage?
@Published var imageSelection: PhotosPickerItem? {
didSet {
unableToLoad = false
if let imageSelection {
//.. try to convert photosPickerItem imageSelection into a uiImage
Task {
try await setImage(from: imageSelection)
}
}
}
}
func setImage(from imageSelection: PhotosPickerItem?) async throws {
do {
if let data = try await imageSelection?.loadTransferable(type: Data.self) {
print("got image data")
if let uiImage = UIImage(data: data) {
print("converted to uiImage")
self.image = Image(uiImage: uiImage)
self.myUIImage = uiImage
}
}
} catch {
print(error.localizedDescription)
unableToLoad = true
}
}
}
The image loads on the UI but I get "[ERROR] Could not create a bookmark: NSError: Cocoa 4097 "connection to service named com.apple.FileProvider" in the log every time I choose a new photo. So far, I haven't had an actual crash but others have indicated that depending on what they're doing code-wise, that some have crashed. Is this an iOS 18.x bug? Thoughts?
Hello all:)
I am using Xcode 16.2, react native 0.76, simulator -> iPhone 15(17.0), mac M1 Sequoia 15.2.
Many "could not build module" errors appear while building files inside iPhoneSimulator18.2.sdk.
The think is that I don't even use this simulator and if I try to delete it the Xcode hides all other simulator options and requires 18.2 to download..
Of course I already tried to clean and delete and reinstall everything but nothing works..
Any help is welcome:)
Thanks!
Hi can you please help me.
I am using macbook M1, macOS Sonoma 14.5. I have installed Xcode latest version 16.2 (everything OK). But then i launch Xcode and i also need to install iOS simulator 18.2. When i click install it takes a long time "Preparing" and then error...
Please help me
Thank you
Main Issue:
While building an iOS project using IL2CPP in Unity, I encountered the following error:
Command PhaseScriptExecution failed with a nonzero exit code
Sub-Issue:
Unity is unable to detect a compatible iPhoneOS SDK, even though Xcode is correctly installed and functioning as expected.
Error Message:
Unity.IL2CPP.Bee.BuildLogic.ToolchainNotFoundException: IL2CPP C++ code builder is unable to build C++ code.
In order to build C++ code for Mac, you must have Xcode installed.
Building for Apple Silicon requires Xcode 9.4 and Mac 10.12 SDK.
Xcode needs to be installed in the /Applications directory and have a name matching Xcode*.app.
Or be selected using xcode-select.
It's also possible to use /Library/Developer/CommandLineTools if those match the listed requirements.
More information and installation instructions can be found here:
https://developer.apple.com/support/xcode/
Specific Xcode versions can be downloaded here:
https://developer.apple.com/download/more/
Unable to detect any compatible iPhoneOS SDK!
Additional Errors & Observations:
bee_backend Not Found
chmod: /Users/vaunicacalji/Desktop/DinoKite/Il2CppOutputProject/IL2CPP/build/deploy_x86_64/bee_backend/mac-x86_64/bee_backend: No such file or directory
Issue: Manually checking the file, bee_backend does exist and is executable, but the build process still reports it as missing.
2. IL2CPP Build Failure
Build failed with 0 successful nodes and 0 failed ones
Error: Internal build system error. BuildProgram exited with code 1.
3. Xcode Not Detected by Unity
Unable to detect any compatible iPhoneOS SDK!
Issue: Running xcode-select -p confirms that Xcode is installed at /Applications/Xcode.app/Contents/Developer, and xcodebuild -showsdks lists available SDKs, including iOS 18.2.
Environment Details:
macOS Version: Sonoma 14.5
Mac Model: MacBook Air (Retina, 13-inch, 2018)
Processor: 1.6 GHz Dual-Core Intel Core i5
Memory: 8GB 2133 MHz LPDDR3
Graphics: Intel UHD Graphics 617 1536MB
Unity Version: 2022.2.21f1
Installed Unity Modules:
✅ iOS Build Support
✅ Mac Build Support (IL2CPP)
✅ IL2CPP
Current Status & Key Issues:
✅ Xcode is properly installed, and xcode-select -p shows the correct path.
✅ xcodebuild -showsdks confirms that iOS SDK 18.2 is available.
✅ bee_backend is present and executable when checked manually.
❌ Unity still reports Unable to detect any compatible iPhoneOS SDK! during the build process.
❌ Unable to successfully build the iOS project.
Could you please provide guidance on how to resolve this issue?
Xcode Build Settings (for reference):
Command PhaseScriptExecution failed with a nonzero
ALWAYS_SEARCH_USER_PATHS = NO
ARCHS = arm64
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon
CLANG_CXX_LANGUAGE_STANDARD = c++0x
CLANG_CXX_LIBRARY = libc++
CLANG_ENABLE_OBJC_ARC = YES
CODE_SIGN_IDENTITY[sdk=iphoneos*] = iPhone Distribution
CODE_SIGN_IDENTITY[config=Debug] = Apple Development
CODE_SIGN_IDENTITY[config=Release] = Apple Distribution
CODE_SIGN_STYLE = Manual
DEVELOPMENT_TEAM[sdk=iphoneos*] = 4429TL28T7
IPHONEOS_DEPLOYMENT_TARGET = 15.6
LD_RUNPATH_SEARCH_PATHS = $(inherited) @executable_path/Frameworks
PRODUCT_BUNDLE_IDENTIFIER = com.torihiplay.DinoKite
PROVISIONING_PROFILE_SPECIFIER[sdk=iphoneos*] = DinoKite.
SDKROOT = iphoneos
SUPPORTED_PLATFORMS = iphoneos
TARGETED_DEVICE_FAMILY = 1,2
UNITY_RUNTIME_VERSION = 2022.2.21f1
UNITY_SCRIPTING_BACKEND = il2cpp
This build is intended for a production release.
I would appreciate any help in resolving this issue. Thank you!
Main Issue:
While building an iOS project using IL2CPP in Unity, I encountered the following error:
Command PhaseScriptExecution failed with a nonzero exit code
Sub-Issue:
Unity is unable to detect a compatible iPhoneOS SDK, even though Xcode is correctly installed and functioning as expected.
Error Message:
Unity.IL2CPP.Bee.BuildLogic.ToolchainNotFoundException: IL2CPP C++ code builder is unable to build C++ code.
In order to build C++ code for Mac, you must have Xcode installed.
Building for Apple Silicon requires Xcode 9.4 and Mac 10.12 SDK.
Xcode needs to be installed in the /Applications directory and have a name matching Xcode*.app.
Or be selected using xcode-select.
It's also possible to use /Library/Developer/CommandLineTools if those match the listed requirements.
More information and installation instructions can be found here:
https://developer.apple.com/support/xcode/
Specific Xcode versions can be downloaded here:
https://developer.apple.com/download/more/
Unable to detect any compatible iPhoneOS SDK!
Additional Errors & Observations:
bee_backend Not Found
chmod: /Users/vaunicacalji/Desktop/DinoKite/Il2CppOutputProject/IL2CPP/build/deploy_x86_64/bee_backend/mac-x86_64/bee_backend: No such file or directory
Issue: Manually checking the file, bee_backend does exist and is executable, but the build process still reports it as missing.
2. IL2CPP Build Failure
Build failed with 0 successful nodes and 0 failed ones
Error: Internal build system error. BuildProgram exited with code 1.
3. Xcode Not Detected by Unity
Unable to detect any compatible iPhoneOS SDK!
Issue: Running xcode-select -p confirms that Xcode is installed at /Applications/Xcode.app/Contents/Developer, and xcodebuild -showsdks lists available SDKs, including iOS 18.2.
Environment Details:
macOS Version: Sonoma 14.5
Mac Model: MacBook Air (Retina, 13-inch, 2018)
Processor: 1.6 GHz Dual-Core Intel Core i5
Memory: 8GB 2133 MHz LPDDR3
Graphics: Intel UHD Graphics 617 1536MB
Unity Version: 2022.2.21f1
Installed Unity Modules:
✅ iOS Build Support
✅ Mac Build Support (IL2CPP)
✅ IL2CPP
Current Status & Key Issues:
✅ Xcode is properly installed, and xcode-select -p shows the correct path.
✅ xcodebuild -showsdks confirms that iOS SDK 18.2 is available.
✅ bee_backend is present and executable when checked manually.
❌ Unity still reports Unable to detect any compatible iPhoneOS SDK! during the build process.
❌ Unable to successfully build the iOS project.
Could you please provide guidance on how to resolve this issue?
Xcode Build Settings (for reference):
ALWAYS_SEARCH_USER_PATHS = NO
ARCHS = arm64
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon
CLANG_CXX_LANGUAGE_STANDARD = c++0x
CLANG_CXX_LIBRARY = libc++
CLANG_ENABLE_OBJC_ARC = YES
CODE_SIGN_IDENTITY[sdk=iphoneos*] = iPhone Distribution
CODE_SIGN_IDENTITY[config=Debug] = Apple Development
CODE_SIGN_IDENTITY[config=Release] = Apple Distribution
CODE_SIGN_STYLE = Manual
DEVELOPMENT_TEAM[sdk=iphoneos*] = 4429TL28T7
IPHONEOS_DEPLOYMENT_TARGET = 15.6
LD_RUNPATH_SEARCH_PATHS = $(inherited) @executable_path/Frameworks
PRODUCT_BUNDLE_IDENTIFIER = com.torihiplay.DinoKite
PROVISIONING_PROFILE_SPECIFIER[sdk=iphoneos*] = DinoKite.
SDKROOT = iphoneos
SUPPORTED_PLATFORMS = iphoneos
TARGETED_DEVICE_FAMILY = 1,2
UNITY_RUNTIME_VERSION = 2022.2.21f1
UNITY_SCRIPTING_BACKEND = il2cpp
This build is intended for a production release.
I would appreciate any help in resolving this issue. Thank you!
I have an app that only crashes once it's been notarised. I read a few posts that essentially said before trying to identify issues by reviewing the crash report I should ensure signing and notarisation has happened correctly.
I've worked through the document "Resolving common notarization issues"
spctl -vvv --assess --type exec: gives no errors and correctly returns my developer id.
codesign -dvv: returns a timestamp
My app uses a hardened runtime.
My app shows up in Xcode as a macOS Archive (e.g not a Generic Xcode Archive)
Here is the crash report.
Translated Report (Full Report Below)
Process: Scene Finder [44479]
Path: /Users/USER/Downloads/Scene Finder.app/Contents/MacOS/Scene Finder
Identifier:
Version: 0.9 (20250206.1)
Code Type: ARM-64 (Native)
Parent Process: launchd [1]
User ID: 501
Date/Time: 2025-02-11 13:09:03.7786 +1000
OS Version: macOS 15.3 (24D60)
Report Version: 12
Anonymous UUID: EE8B1269-0A8A-3AB6-516B-C752E8A18B5A
Sleep/Wake UUID: 436CD7CF-7B13-4A9C-9425-7EF94CC007A9
Time Awake Since Boot: 98000 seconds
Time Since Wake: 9524 seconds
System Integrity Protection: enabled
Crashed Thread: 0 Dispatch queue: com.apple.main-thread
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Termination Reason: Namespace SIGNAL, Code 6 Abort trap: 6
Terminating Process: Scene Finder [44479]
Has anyone used the Xcode AI coding assistant called CodeNext?
It is a free tool and can be downloaded at codenext.ai.
It autocompletes code, has a chat function, and can use any AI model which is a cool feature.
Curious to know your thoughts and what other tools you've used.
In Xcode 16.0 and 16.1, it was clear how @Entry macro works from the generated code. If you explicitly specify the type, then defaultValue is a computed property, if you do not specify the type, then a stored property.
In Xcode 16.2, @__EntryDefaultValue has been added to the generated code, which Xcode does not want to expand. Visually, it seems that a stored property is generated, but the behavior shows that as a result we have a computed property, and for both options: with an explicit type and without an explicit type.
So the question is: what does this @__EntryDefaultValue macro generate and is the result a bug? Or was it a bug in previous versions of Xcode?
Hello!
When trying to use MLTensor, I am getting the error that it is not found in scope even though I am using Xcode 15.1 (it says fully up to date) and set my deployment target to iOS 17.2. Is there something else I need to be doing in order to use MLTensor?
Thanks!
Michael
Xcode 16.2 crashes when opening .swift or .xib files.
-------------------------------------
Translated Report (Full Report Below)
-------------------------------------
Process: Xcode [54754]
Path: /Applications/Xcode-16.2.0.app/Contents/MacOS/Xcode
Identifier: com.apple.dt.Xcode
Version: 16.2 (23507)
Build Info: IDEApplication-23507000000000000~2 (16C5032a)
Code Type: ARM-64 (Native)
Parent Process: launchd [1]
User ID: 501
Date/Time: 2025-02-10 07:45:46.2320 +0900
OS Version: macOS 15.3 (24D60)
Report Version: 12
Anonymous UUID: C4102718-BC60-1A08-FB0D-3B7AAB19D6D0
Sleep/Wake UUID: 2FE8B1FA-D2A5-4F55-9DF5-2178F3212F84
Time Awake Since Boot: 120000 seconds
Time Since Wake: 33305 seconds
System Integrity Protection: enabled
Crashed Thread: 0 Dispatch queue: com.apple.main-thread
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Termination Reason: Namespace SIGNAL, Code 6 Abort trap: 6
Terminating Process: Xcode [54754]
Application Specific Information:
abort() called
Application Specific Signatures:
NSInvalidArgumentException
Application Specific Backtrace 0:
0 CoreFoundation 0x00000001971f6e80 __exceptionPreprocess + 176
1 DVTFoundation 0x000000010643788c DVTFailureHintExceptionPreprocessor + 388
2 libobjc.A.dylib 0x0000000196cdecd8 objc_exception_throw + 88
3 CoreFoundation 0x00000001972ac1d8 -[NSObject(NSObject) __retain_OA] + 0
4 CoreFoundation 0x0000000197163830 ___forwarding___ + 1568
5 CoreFoundation 0x0000000197163150 _CF_forwarding_prep_0 + 96
6 AssetCatalogFoundation 0x000000011c04aa68 -[IBICAbstractCatalogItem(IBICManifestArchivistDelegate) manifestArchivist:applyPropertiesFromChildEntry:toChild:results:] + 1380
7 AssetCatalogFoundation 0x000000011c10b3c8 -[IBICBundleIconSet manifestArchivist:applyPropertiesFromChildEntry:toChild:results:] + 112
8 AssetCatalogFoundation 0x000000011c065e0c -[IBICAppIconSet manifestArchivist:applyPropertiesFromChildEntry:toChild:results:] + 240
9 AssetCatalogFoundation 0x000000011c048704 -[IBICManifestArchivist childFromChildEntry:results:] + 192
10 AssetCatalogFoundation 0x000000011c048890 __73-[IBICManifestArchivist childrenFromContentsJSONChildrenEntries:results:]_block_invoke + 152
11 AssetCatalogFoundation 0x000000011c122668 IBWithObjectBufferResultingInArray + 72
12 AssetCatalogFoundation 0x000000011c0487b4 -[IBICManifestArchivist childrenFromContentsJSONChildrenEntries:results:] + 128
13 AssetCatalogFoundation 0x000000011c0490ec -[IBICManifestArchivist replaceChildrenFromFileSystemSnapshot:results:] + 456
14 AssetCatalogFoundation 0x000000011c0548fc -[IBICSlottedAsset replaceChildrenFromFileSystemSnapshot:results:] + 116
15 AssetCatalogFoundation 0x000000011c04924c -[IBICManifestArchivist replaceChildrenFromFileSystemSnapshot:results:] + 808
16 AssetCatalogFoundation 0x000000011c042e54 -[IBICFolder replaceChildrenFromFileSystemSnapshot:results:] + 116
17 AssetCatalogFoundation 0x000000011c08c8e8 -[IBICAbstractCatalog replaceChildrenWithDiskContent:] + 140
18 AssetCatalogFoundation 0x000000011c0798f0 -[IBICCatalogSynchronizer replaceCatalogWithContentsOfPathWhileItIsKnowThatSyncOperationsAreNotInflightAndAreDisabled:] + 140
19 AssetCatalogFoundation 0x000000011c0796f0 -[IBICCatalogSynchronizer replaceCatalogWithContentsOfPath:] + 104
20 AssetCatalogFoundation 0x000000011c077380 +[IBICCatalogSynchronizer synchronizerTakingOwnershipForCatalog:atPath:] + 92
21 AssetCatalogFoundation 0x000000011c0773e8 +[IBICCatalogSynchronizer synchronizerForCatalogAtPath:] + 68
22 AssetCatalogKit 0x000000011a249b04 __69+[IBICCatalogMediaRepository retainedCatalogSynchronizerForFilePath:]_block_invoke + 52
23 AssetCatalogFoundation 0x000000011c0c2708 -[NSMutableDictionary(IBMutableDictionaryAdditions) ib_objectForKey:creatingIfNecessaryWithBlock:] + 100
24 AssetCatalogKit 0x000000011a249a60 +[IBICCatalogMediaRepository retainedCatalogSynchronizerForFilePath:] + 136
25 AssetCatalogKit 0x000000011a24b660 -[IBICCatalogMediaRepository _addSynchronizerForCatalogAtPath:] + 48
26 AssetCatalogKit 0x000000011a24b12c __104-[IBICCatalogMediaRepository fileReferenceObserverDidReportUpdatedAndAddedResourcesByPath:removedPaths:]_block_invoke + 544
27 AssetCatalogKit 0x000000011a24acd8 -[IBICCatalogMediaRepository notifyObserversAfterPossiblyMutatingWithBlock:] + 88
28 AssetCatalogKit 0x000000011a24aed8 -[IBICCatalogMediaRepository fileReferenceObserverDidReportUpdatedAndAddedResourcesByPath:removedPaths:] + 132
29 IDEKit 0x000000010a4f0e80 __54-[IDEContainerContentsMediaRepository _startObserving]_block_invoke + 596
30 IDEFoundation 0x000000010ea491c8 -[IDEContainerContentProductionCoordinator deliverPendingResults:] + 172
31 DVTFoundation 0x0000000106618994 __48-[DVTDelayedInvocation initWithTarget:selector:]_block_invoke + 24
32 DVTFoundation 0x0000000106619a2c -[DVTDelayedInvocation runBlock:] + 272
33 Foundation 0x00000001984026b4 __NSFirePerformWithOrder + 296
34 CoreFoundation 0x0000000197183be8 __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 36
35 CoreFoundation 0x0000000197183ad4 __CFRunLoopDoObservers + 552
36 CoreFoundation 0x0000000197183104 __CFRunLoopRun + 788
37 CoreFoundation 0x0000000197182734 CFRunLoopRunSpecific + 588
38 HIToolbox 0x00000001a26f1530 RunCurrentEventLoopInMode + 292
39 HIToolbox 0x00000001a26f7348 ReceiveNextEventCommon + 676
40 HIToolbox 0x00000001a26f7508 _BlockUntilNextEventMatchingListInModeWithFilter + 76
41 AppKit 0x000000019acfa848 _DPSNextEvent + 660
42 AppKit 0x000000019b660c24 -[NSApplication(NSEventRouting) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 688
43 AppKit 0x000000019aced874 -[NSApplication run] + 480
44 IDEKit 0x000000010a278f14 -[IDEApplication run] + 192
45 AppKit 0x000000019acc4068 NSApplicationMain + 888
46 dyld 0x0000000196d1c274 start + 2840
Hi, I'm developing an app and after I change the app icon it's appear this error. Why?
Previously I noticed, and it still does, that in the app settings it does not keep the LauncScreen.storyboard. In the drop-down menu it appears but as soon as I change screen it loses it.
I don't know what to do....
Thanks!
I keep getting this error when trying to install Audio app extension.
Everything is reviewed from certificates to profiles, for some reason
CreatingCustomAudioEffects sample is deployed correctly but when Creating new Project (Audio Extension App) from new project Option, it doesn't work at all.
If I remove Extension from Frameworks and deploy app, then no problem but then App crashes as extension is missing. Something wrong with Xcode? I am pretty sure it used to build new projects but not anymore.
Failed to verify code signature of /var/installd/Library/Caches/com.apple.mobile.installd.staging/temp.0k1RXy/extracted/AudioUnitsAppExtensionTest.app : 0xe8008015 (A valid provisioning profile for this executable was not found.)
Please ensure sure that your app is signed by a valid provisioning profile.
If this issue persists, please attach the following when sending a report to Apple:
A sysdiagnose from this Mac
A sysdiagnose from the device failing installation
An IPA of the app failing installation
I submitted feedback as FB16463501 -- posting here for others to see, or maybe for Apple to share any help if there are workarounds, etc.:
Targets below iOS 18.x fail to launch app due to dyld[xxxxx]: Symbol not found: errors when referencing:
MeshResource.init(from:) async - https://developer.apple.com/documentation/realitykit/meshresource/init(from:)-b7hb
i.e. dyld[61511]: Symbol not found: _$s10RealityKit12MeshResourceC0A10FoundationE4fromACSayAD0C10DescriptorVG_tYaKcfC
MeshResource.replace(with:) async - https://developer.apple.com/documentation/realitykit/meshresource/replace(with:)-8uvri
i.e. dyld[78830]: Symbol not found: _$s10RealityKit12MeshResourceC0A10FoundationE7replace4withyAcDE8ContentsV_tYaKF
Targets tested that exhibit issue: (DYLD errors)
Device: iOS 17.7.2, iPhone 14 Pro Max
Simulator: iOS 17.5 (21F79), iPhone 15
System Information:
macOS Version 15.3 (Build 24D60)
Xcode 16.2 (23507) (Build 16C5032a)
MRE -- include this code in your app: (no need to invoke, just reference)
static func addOrUpdateEntityModel_MRE(_ entity: ModelEntity) async {
let descriptor = MeshDescriptor(name: "MyDescriptor")
do {
if let modelComponent = entity.model { // update existing ModelComponent
if let model = try? MeshResource.Model(id: "MyModelId", descriptors: [descriptor]) {
var contents = MeshResource.Contents()
contents.models = .init([model])
try await modelComponent.mesh.replace(with: contents) /// `dyld[78830]: Symbol not found: _$s10RealityKit12MeshResourceC0A10FoundationE7replace4withyAcDE8ContentsV_tYaKF`
}
} else { //create new ModelComponent
/// Comment-out the 2 lines below == dyld error for above `MeshResource.replace(with:)`
let meshRes = try await MeshResource(from: [descriptor]) /// `dyld[61511]: Symbol not found: _$s10RealityKit12MeshResourceC0A10FoundationE4fromACSayAD0C10DescriptorVG_tYaKcfC`
entity.model = .init(mesh: meshRes, materials: [SimpleMaterial()])
}
} catch {
fatalError()
}
}
Environment: Xcode v. 16.2; Swift version 6+
Scenario: I have an .xcodeproj within an .xcsworkingspace that must follow the 'command-line' paradigm outside the sandbox.
My UnitTest (using the newer 'Swift Test' vs 'XCTest') is hitting runtime fatal errors due to sandbox violations.
Here's a typical error line from the compiler:
1 duplicate report for Sandbox: chmod(41377) deny(1) file-read-data /Users/Ric/Library/..
I've set the .entitlement to ignore sandbox:
&lt;key&gt;com.apple.security.app-sandbox&lt;/key&gt;
&lt;false/&gt;
I also created a shell script in the project build phase to access my TestData which was copied via a Build Phase:
#!/bin/bash
BUILD_DIR="${BUILT_PRODUCTS_DIR}"
TEST_DATA="${SRCROOT}/SwiftModelTest/TestData"
mkdir -p "${BUILD_DIR}/TestData"
cp -R "${TEST_DATA}/" "${BUILD_DIR}/TestData/"
What do I need to allow real-time Testing of my code without worrying about the Sandbox?
I have an app, which is depended on custom SDK. Custom SDK has dependencies, included all dependencies in Podspec and custom framework/static lib ios.vendored_frameworks.
here I sample of my pod spec
Pod::Spec.new do |s|
s.name = "SDK"
s.version = "1.0.1"
s.summary = "SDK"
s.source = { :git => "https://github.com/ABC/SDK.git", :tag => "v"+s.version.to_s }
s.platform = :ios
s.ios.deployment_target = '16.0'
s.swift_version = '4.2'
s.static_framework = true
s.frameworks = 'Security'
s.frameworks = 'CoreLocation'
s.requires_arc = true
s.module_name = 'SDK'
s.library = 'z'
s.default_subspec = 'Shared'
s.subspec 'Shared' do |shared|
shared.ios.vendored_frameworks = 'SDKLib.xcframework'
shared.dependency 'CocoaAsyncSocket', '~> 7.4'
shared.dependency 'CocoaHTTPServer'
shared.dependency 'SocketRocket', '~> 0.6'
shared.dependency 'QNNetDiag'
shared.dependency 'SAMKeychain'
shared.dependency 'AFNetworking/Reachability', '~> 4.0'
shared.dependency 'AFNetworking/Serialization', '~> 4.0'
shared.dependency 'AFNetworking/Security', '~> 4.0'
shared.dependency 'AFNetworking/NSURLSession', '~> 4.0'
shared.dependency 'CocoaMQTT'
shared.dependency 'Starscream', '~> 4.0.8'
shared.dependency 'TrustKit'
shared.dependency 'Firebase/Analytics'
end
end
below error I am getting while linking lib