Post not yet marked as solved
Hey Apple,
In 5-10 minutes after running of iPhone emulator it hangs and reboots the whole operation system. Suggested solution with deleting and adding emulator does not work. I'm facing that issue last few months. Are you guys going to fix that? Crash log is attached
CrashLog
Post not yet marked as solved
Hi,
I am developing an app which has a calendar integrated. This calendar comes from a package called CalendarKit (https://github.com/richardtop/CalendarKit ).
With this calendar you can access to all the events of you mobile integrated calendar and create new ones, modify them, delete, etc. All the events on you mobile calendar are going to be represented here and the same in the other way, everything that you create here will be represented on you mobile calendar.
So the main question is. How can i access to the 'Delete Event' action inside the 'Event Details' view?
I know that i can delete an event programmatically, but i need to "modify" the behavior when clicking on the item 'Delete Event'.
Is there any possible way to access to this item inside event details and when clicking on it do a custom action?.
For example, when clicking i want to:
print a text in the console,
show an alert,
get the EventID of the event deleted,
etc.
Can somebody help me with this??
Thanks a lot in advance.
Post not yet marked as solved
I have just installed Xcode 14 Beta but there is no option to make an AppleScript project. Is this no longer available ?
Post not yet marked as solved
MacBook Pro 2018 mid 13.3"
Xcode 13.3
Mac OS Monterey 12.3
I had the kernelpanic bellow three time today. I had Xcode with simulator running all times.
Have anyone this issue?
kernel panic
Post not yet marked as solved
hello to everyone
im new on this fantastic world
im creating my firs game and of course i start with gamesalad
im do everything perfrct(i mean)
when i generate the ipa everything is fine
transporter to apple connect is a problem
MacOs Monteray 12.4
xcode Version 13.4.1
my error is this...anyone or something help me please
Asset validation failed (90725) SDK Version Issue. This app was built with the iOS 14.5 SDK. All iOS apps submitted to the App Store must be built with the iOS 15 SDK or later, included in Xcode 13 or later. (ID: b17f0e2f-0971-4e54-ab30-7a5feed7e88e)
Post not yet marked as solved
I'm currently trying to save a selected image in core data as a type data, but I'm getting an error in the persistence file marked with a comment. I've included my code and any questions I will gladly answer. Thanks for any help!
Content View:
import SwiftUI
import PhotosUI
struct ContentView: View {
@ObservedObject var persistence = PersistenceController.shared
@State var selectedItems: [PhotosPickerItem] = []
@State var data: Data?
var body: some View {
NavigationView{
VStack{
Spacer()
VStack{
Spacer()
if let data = data, let uiimage = UIImage(data: data) {
Image(uiImage: uiimage)
.resizable()
.scaledToFit()
.frame(width: 250, height: 500)
}
Spacer()
}
Spacer()
PhotosPicker(selection: $selectedItems, maxSelectionCount: 1, matching: .images){
Text("Pick Photo")
}
.onChange(of: selectedItems){ newValue in
guard let item = selectedItems.first else{
return
}
item.loadTransferable(type: Data.self){ result in
switch result {
case .success(let data):
if let data = data{
self.data = data
} else {
print("Data is nil")
}
case .failure(let failure):
fatalError("\(failure)")
}
}
}
Spacer()
}
.navigationBarItems(trailing: addButton)
}
}
var addButton: some View {
Button(action: {
guard let item = selectedItems.first else{
return
}
item.loadTransferable(type: Data.self){ result in
switch result {
case .success(let data):
if let data = data{
persistence.addObject(image: data)
} else {
print("Data is nil")
}
case .failure(let failure):
fatalError("\(failure)")
}
}
}){
Text("Add Image").bold()
}
}
}
Persistence:
import Foundation
import CoreData
class PersistenceController: ObservableObject {
static let shared = PersistenceController()
let container: NSPersistentContainer
init(inMemory: Bool = false) {
container = NSPersistentContainer(name: "ReciPlanner")
if inMemory {
container.persistentStoreDescriptions.first!.url = URL(fileURLWithPath: "/dev/null")
}
container.loadPersistentStores(completionHandler: { (storeDescription, error) in
if let error = error as NSError? {
fatalError("Unresolved error \(error), \(error.userInfo)")
}
})
container.viewContext.automaticallyMergesChangesFromParent = true
}
func addObject(image: Data){
let context = container.viewContext
let object = Object(context: context) //Error: Thread 7: "An NSManagedObject of class 'Object' must have a valid NSEntityDescription."
object.item = image
}
func contextSave() {
let context = container.viewContext
if context.hasChanges {
do {
try context.save()
} catch {
print("**** ERROR: Unable to save context \(error)")
}
}
}
}
Data Model:
Post not yet marked as solved
When archiving the app with Xcode 14 beta, we got some errors regarding resources bundle code signing.
xxxResources does not support provisioning profiles. xxxResources does not support provisioning profiles, but provisioning profile <...> has been manually specified. Set the provisioning profile value to "Automatic" in the build settings editor...
It turns out that in Xcode 14 beta, CODE_SIGNING_ALLOWED of resource bundle is being set to YES by default while it's NO in Xcode 13.x.
Is this an expected change or a bug introduced by Xcode 14 beta?
Post not yet marked as solved
When using an Intents configuration with Widget Extension, the compiler will generate code for your configuration. But in Xcode 14, this generated code now contains warnings:
Method 'confirm(intent:)' with Objective-C selector 'confirmConfiguration:completion:' conflicts with method 'confirm(intent:completion:)' with the same Objective-C selector; this is an error in Swift 6
It seems that in Xcode 14 this generated code now contains async versions of its methods, but that these methods have the same objc selectors as the non async versions:
public protocol ConfigurationIntentHandling: NSObjectProtocol {
@objc(confirmConfiguration:completion:)
optional func confirm(intent: ConfigurationIntent, completion: @escaping (ConfigurationIntentResponse) -> Swift.Void)
@objc(confirmConfiguration:completion:)
optional func confirm(intent: ConfigurationIntent) async -> ConfigurationIntentResponse
@objc(handleConfiguration:completion:)
optional func handle(intent: ConfigurationIntent, completion: @escaping (ConfigurationIntentResponse) -> Swift.Void)
@objc(handleConfiguration:completion:)
optional func handle(intent: ConfigurationIntent) async -> ConfigurationIntentResponse
}
Is there a new way to handle widget configuration in Xcode 14? Or is this just a massive oversight? I have treat warnings as errors enabled (as everyone should) so this prevents my app from building.
Filed as FB10338460
Post not yet marked as solved
Given is an app project with two SPM dependencies: one to a source code repro and one to a repro containing in XCFramework. Using "Build Documentation" in Xcode generates the documentation for the app and source framework but not for the XCFramework.
Wonder, why the documentation is not generated from the symbol graph of the binary
Tried to create a .doccarchive with the framework using "Build Documentation during 'Build'" build setting, but:
.doccarchive is not copied when creating a XCFramework
after adding .doccarchive to XCFramework, it will not be resolved and downloaded via SPM
Is there any way to distribute the documentation of my binary framework over SPM to be displayed in the Documentsbrowser using the "Build Documentation" command?
Post not yet marked as solved
Anyone know how I can delete a URL Type and add URL Type properties?
It says click here to add properties but that does nothing.
Post not yet marked as solved
Receiving this error when trying to validate any app. I've been able to successfully validate a few days ago, but it just started happening.
Error Fetching App Record
App record request failed with error: "Unexpected Status Code"
I made a new command-line tool C++ project in Xcode, with the following main.cpp:
#include <iostream>
int main() {
std::cout << "Hello, World!\n";
}
When I try to profile it in Instruments with any template, I get the following error before my program even starts:
Failed to execute loader thread for /Applications/Xcode.app/Contents/SharedFrameworks/DVTInstrumentsFoundation.framework/Resources/liboainject.dylib in target; target process <pid> likely exited
I get the same error when I try running Instruments with xctrace.
How do I get Instruments to properly load my programs?
Setup:
Xcode version: 13.4.1 (13F100)
Hardware: 2020 M1 MacBook Air
Post not yet marked as solved
Hi Team,
I have created single app project with Family controls capabilities and added respected framework. Once it's done I am not able to see App scheme in Active scheme area. When I try to run the project, Choose app to run pop-up getting shown.
Any help on this please?
Post not yet marked as solved
productbuild.crash
While doing the final .pkg file calling the tool:
productbuild --distribution "$DIS_FILE" --resources "$RES_DIR" --package-path "$PKGS" --version "$VERSION" "$PKG_NAME"
And the crash stack is:
Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 libxar.1.dylib 0x00007fff2ae2c00c xar_file_new_from_parent + 190
1 libxar.1.dylib 0x00007fff2ae29d59 xar_add_frombuffer + 63
2 com.apple.PackageKit 0x00007fff3ba79a2f -[PKMutableXARArchive setData:forPath:compressed:] + 246
3 com.apple.PackageKit 0x00007fff3babb38e -[PKArchiveDistributionContainer setResourceData:forKey:forLocalization:] + 284
4 com.apple.PackageKit 0x00007fff3bab9fef -[PKMutableDistributionContainer storeResourcesAtPath:forLocalization:] + 922
5 com.apple.PackageKit 0x00007fff3baa5590 -[PKArchiveProduct(ForMutableSubclassers) addResourceDataAtPath:] + 324
6 productbuild 0x000000010efdc8a8 0x10efd8000 + 18600
7 productbuild 0x000000010efdba6e 0x10efd8000 + 14958
8 libdyld.dylib 0x00007fff204c0f3d start + 1
While using macOS 11.6.7, xcode 12.3, and CLT 11.1
Hi, I'd greatly appreciate any help with this problem. I have developed an app for both iOS and android. The app is built with Kivy and Python, it functions as expected however in Xcode I cannot find a way to prevent the phone/device from dimming and locking.
I'm very new to Xcode and iOS, but I ave tried several variations of.
[UIApplication sharedApplication].idleTimerDisabled = YES;
in multiple areas of the m Main but I cannot get it to work, no matter what I try the phone still goes to sleep/locks.
If that code above is supposed to work, I have no idea where to put it. As far as I can tell, the only places I could enter something like that is in the main.m, bridge.m and bridge.h code; or somewhere in the info.plist
I'm currently lost, feels like a simple problem.
Post not yet marked as solved
Using xCode 13.4.1, my assets catalog (assets.xcassets) has gone blank. Which is to say when I click on the icon in the left-hand Navigator, the normal OutlineView and DetailView are replaced by a large white area of screen.
If I try, for example, to drag a new image file into this area, it bounces out.
The existing assets are still there; when I run the app the images, etc., appear as expected. I just can't see them to manage them (or add new assets).
I have restarted xCode several times to no avail. Has this ever happened before? Does anyone have a solution?
BTW, in other app projects, the assets catalogs are working normally. It is just in one project where the catalog is "blank"
Still can't publish apps. Differents errors like : App record request failed with error: "Unexpected Status Code".
What issues ?
Thanks
Post not yet marked as solved
We have a project that compiles an app for both x64 and arm64 Mac machines. This build is done via Visual Studio MSBuild with specific RIDs and Mac native code via xcode.
Using the 'packages' application we build an distribution package, which contains the two pkgs for the specific architectures. The project contains settings to pick the correct PKG according to the architecture running the installation ('packages' will include a JavaScript script in the Distribution file for this).
This all works just fine when running the final PKG manually. But when deploying via Intune as LOB this doesn't work well. It seems Intune will skip the complete Distribution file and will install all the PKGs included in to distribution package.
The logfile shows that both x64 and arm64 are installed
Install.log
This will result in the x64 to be installed, and being overwritten by the arm64 installation. And a non-functional app on a x64 based Mac.
We edited the preinstall.sh for both packages and do another architecture check and error-out when running on a wrong platform; but that doesn't work either: Intune will cancel the whole installation transaction when one pkg fails. Resulting in a non-installed package.
What would be a good way to create an universal installation/distribution package with both architectures which would be able to be deployed via intune?
Post not yet marked as solved
By debugging in iPhone 12 mini simulator I got different screen size than real iPhone 12 mini. Is there any chance that I can get iPhone 12 mini simulator exactly as real device?
Need to debug something but don't want to buy iphone 12 mini for that purpose.
An error error was encountered: Error Analyzing App Version
(Build number request failed with error: BuildsService: ResponseErrors (1)
(1): Error status: 400, code: PARAMETER_ERROR.INVALID, title: 'A parameter has an invalid value' detail: "" is not a valid filter, id ........
'