Post not yet marked as solved
Hello, good morning,
I have a problem with the vendor identifier UUID, basically every time I install the app is debug, testfligth or prod is creating me a new id, this generates a problem when sending notifications from the backend because we link the id with the token of the push and this makes the push is sent repeatedly. Is it possible to use the UUID (even if apple doesn't like it) ?
Post not yet marked as solved
I would like to use Arkit and Unity for an AR guided tour of our city, where every person will see a series of videos anchored in space, and the tour guide will give more info and context.
I have a demo, made in Unity where first u go around placing cubes, to be used as placeholder for the videos. This works very well in small enviroments like an office or a home.
But when we try this solutions on the actual place, the cube are placed fine, but when going back to the starting point i have noticed that the camera in Unity is not at the starting point. So the cubes are not aligned with the actual real places.
It look likes there are some errors accumulating that will make the real position differ from the one in Unity.
I am not sure how to solve this problem, i can’t find any similar problem on the forum.
Could this be solved by software ?
Is this an expected behaviour ? maybe it has a max range.
Could it be a problem with Unity and the distance from the origin ? I don’t think this is the case, but maybe it starts to loose the origin ?
I am using an Ipad Pro to make the tests, but for the client it would use an Ipad 10''
Thanks
Post not yet marked as solved
Has anyone enrolled in the Apple Small Biz program (15% fees rather than 30%) and then never received an answer? Apple acknowledged our application but never made the change a year and a half ago. We reapplied twi ce since then, also received receipt of application, and nothing.
One customer service rep says he saw we were approved, but we don't see the 15%. Another new rep says we never applied as of today.
I believe this is illegal?
Post not yet marked as solved
This is an interesting issue I am having with a custom app I am making in Xcode using SwiftUI.
I have a Swift file called BillView. In this file, I have some code that displays data retrieved from the CoreData Stack in a List. The issue I am having is when I add a new record, the List reflects that there is an additional row but it has the same displayed text as the one above it. If I continue to add records, they all show the same text as the first row. I have gone through the code and banged my head against the wall until it now hurts. Can someone please help me discover why each row isn't showing its unique data? I have attached the code from the BillView Swift file below.
//
// BillView.swift
// Budget Me
//
// Created by Charles Vincent on 8/3/22.
//
import SwiftUI
import CoreData
struct BillRow: View {
var bill: Bill
var body: some View {
Text(bill.merchant ?? "No merchant given")
}
}
struct BillView: View {
@Environment(\.managedObjectContext) private var viewContext
@FetchRequest(
entity: Bill.entity(),
sortDescriptors: [NSSortDescriptor(keyPath: \Bill.date, ascending: true)],
animation: .default)
private var bills: FetchedResults<Bill>
@State var linkActive = false
var body: some View {
NavigationView {
List {
ForEach(bills){ bill in
BillRow(bill: bill)
}
.onDelete(perform: deleteBills)
}
.navigationTitle("Bills")
.background(
NavigationLink(destination: AddBillView(), isActive: $linkActive) {}
)
.toolbar {
ToolbarItem(placement: .automatic) {
Button(action: {
linkActive = true
}) {
Image(systemName: "plus")
}
}
}
}
}
private func deleteBills(offsets: IndexSet) {
withAnimation {
offsets.map { bills[$0] }.forEach(viewContext.delete)
do {
try viewContext.save()
} catch {
// Replace this implementation with code to handle the error appropriately.
// fatalError() causes the application to generate a crash log and terminate. You should not use this function in a shipping application, although it may be useful during development.
let nsError = error as NSError
fatalError("Unresolved error \(nsError), \(nsError.userInfo)")
}
}
}
}
struct BillView_Previews: PreviewProvider {
static var previews: some View {
BillView()
}
}
Post not yet marked as solved
We have a handful of users with the iOS16 beta that are reporting app crash on launch. We're seeing this new crash which seemingly only impacts iOS 16 users, but the crash report doesn't seem to indicate a crash point in our app (only OS/system level objects).
In the crash log, the main thread appears to be stuck in a loop with trait collections possibly leading to resource exhaustion/stack overflow, but I can't see where the stack begins within our app at all, everything in the log seems OS level.
UPDATE: Started on 27 July 2022, which is the same release date as iOS 16 Beta 4 (20A5328h) - confirmed all crash reports are for this release of iOS 16 (20A5328h). Bug report logged https://feedbackassistant.apple.com/feedback/11079459 .
Screenshot from Organizer and crash report below:
2022-08-05_11-06-29 - ios16 Crash Report.txt
Post not yet marked as solved
Comparison between MAC Studio M1 Ultra (20c, 64c, 128GB RAM) vs 2017 Intel i5 MBP (16GB RAM) for the subject matter i.e.
memory leakage while using tf.keras.models.predict() for saved model on both machines:
MBP-2017: First prediction takes around 10MB and subsequent calls ~0-1MB
MACSTUDIO-2022: First prediction takes around 150MB and subsequent calls ~70-80MB.
After say 10000 such calls o predict(), while my MBP memory usage stays under 10GB, MACSTUDIO climbs to ~80GB (and counting up for higher number of calls).
Even using keras.backend.clear_session() after each call on MACSTUDIO did not help.
Can anyone having insight on TensorFlow-metal and/or MAC M1 machines help?
Thanks,
Bapi
Post not yet marked as solved
Made a mapview with the Mapkit, and followed some tutorials online.
How could the annotations I'm adding to the map be saved? So when they go back to the app, they will always show.
After doing the first question ,how could customers delete an annotation if they wanted to?
How could I get directions to an annotation I've made, and get directions by boat?
Thanks in advance.
Post not yet marked as solved
I just upgraded to macOS 12.5, installed XCode 13.4.1, built a .DMG installation file for my app (using Qt Creator), and proceeded to use my Apple Developer status for the first time (ta-da!) to acquire a Developer ID Installer certificate.
That certificate is now visible in Keychain Access. However, it is noted as 'certificate is not trusted'. I did read that old intermediary certificates could be the cause of this but I also read that new versions of XCode automatically updates those intermediary certificates.
Questions:
(1) How do I check that the necessary intermediate certificates are OK?
(2) Am I missing some action I need to do in XCode? So far I did nothing but launch XCode and close it again.
(3) Given that I will get my certificate trusted at some point, what are the steps I should go through (in XCode or in Terminal) to codesign my .DMG file, so that it will install without warnings on another Mac computer? I have found it impossible to find instructions for this straightforward task. -- I am not going to use the App Store.
Post not yet marked as solved
Hi, I have a little trouble with the project I'm workin on. We are 3 developers who are working on the same project. Since a couple of months once a day I need to delete my developer certificate and download it again because it result invalid on the KeyChain. This issue are in common with the other two developers too.
Do some one have or had the same issue? What can I check to solve this issue?
Thanks a lot in advance
Post not yet marked as solved
Hotspot does not work if I have an MS Teams setup with Authenticator. Can you @applesupport please verify is this is the case or not?
Post not yet marked as solved
I created a custom Numpad keyboard through xib and wanted to add a blur effect to its background. So I add a Visual Effect View in xib: https://i.stack.imgur.com/QjiwP.png
Main View and Visual Effect View background color is set to Default and I also tried to use Clear Color.
The problem is when I initialize the Numpad, background has a light grey color without any blur effect: https://i.stack.imgur.com/LebUA.png
How to add a blur effect to the Numpad so yellow square can be blurred and visible?
Code for NumpadView:
import UIKit
class NumpadView: UIView {
@IBOutlet weak var resetButton: NumpadButton!
@IBOutlet weak var decimalButton: NumpadButton!
var target: UITextInput?
var view: UIView?
init(target: UITextInput, view: UIView) {
super.init(frame: .zero)
self.target = target
self.view = view
initializeSubview()
}
required init?(coder: NSCoder) {
super.init(coder: coder)
initializeSubview()
}
func initializeSubview() {
let xibFileName = "NumpadView"
let view = Bundle.main.loadNibNamed(xibFileName, owner: self, options: nil)![0] as! UIView
self.addSubview(view)
view.frame = self.bounds
self.autoresizingMask = [.flexibleWidth, .flexibleHeight]
}
}
Code for initializing in a VC:
import UIKit
class NumpadViewController: UIViewController, UITextFieldDelegate {
@IBOutlet weak var textField: UITextField!
override func viewDidLoad() {
super.viewDidLoad()
textField.delegate = self
textField.inputView = NumpadView(target: textField, view: view)
}
}
Post not yet marked as solved
I want to upgrade my iPhone to iOS 16 because I heard that it’s stable enough to daily drive. But I am scared to upgrade my watch because you can’t go back. Does anybody know if you can use iOS 16 without updating you’re Watch?
Post not yet marked as solved
Hello,
I am trying to access the motion rotation rate on an Apple Watch and store up to 50 consecutive readings in an array. Currently, the readings stop suddenly after 32 readings. I have pretty much the exact same code for acceleration and roll, and the code for those sensors work just fine. Any insight into why this is happening?
struct ModelConstants {
static let predictionWindowSize = 50
static let sensorsUpdateInterval = 1.0 / 50.0
}
let motionManager = CMMotionManager()
func MyGyro(){
guard motionManager.isDeviceMotionAvailable else {
print("Device Motion is not available on the device")
return }
motionManager.deviceMotionUpdateInterval = TimeInterval(ModelConstants.sensorsUpdateInterval)
motionManager.startDeviceMotionUpdates(using: .xMagneticNorthZVertical, to: OperationQueue.current!){ [self] (deviceData, error) in
if let gyroDeviceData = deviceData {
self.gyroX.setText("\(gyroDeviceData.rotationRate.x)")
self.gyroY.setText("\(gyroDeviceData.rotationRate.y)")
self.gyroZ.setText("\(gyroDeviceData.rotationRate.z)")
// Add the current data sample to the data array
self.addGyroSampleToDataArray(deviceMotionSample: gyroDeviceData)
}
}
}
func addGyroSampleToDataArray (deviceMotionSample: CMDeviceMotion) {
// Add the current gyroscope reading to the data array
gyroDataX.append(deviceMotionSample.rotationRate.x)
gyroDataY.append(deviceMotionSample.rotationRate.y)
gyroDataZ.append(deviceMotionSample.rotationRate.z)
if (gyroDataZ.count == ModelConstants.predictionWindowSize) {
gyroDataX_mean = Double(gyroDataX.mean)
gyroDataY_mean = Double(gyroDataY.mean)
gyroDataZ_mean = Double(gyroDataZ.mean)
gyroDataX_std = Double(gyroDataX.sd)
gyroDataY_std = Double(gyroDataY.sd)
gyroDataZ_std = Double(gyroDataZ.sd)
gyroDataX_min = Double(gyroDataX.min() ?? 0)
gyroDataY_min = Double(gyroDataY.min() ?? 0)
gyroDataZ_min = Double(gyroDataZ.min() ?? 0)
gyroDataX_max = Double(gyroDataX.max() ?? 0)
gyroDataY_max = Double(gyroDataY.max() ?? 0)
gyroDataZ_max = Double(gyroDataZ.max() ?? 0)
gyroDataX.removeAll()
gyroDataY.removeAll()
gyroDataZ.removeAll()
}
}
func MyAccel(){
guard motionManager.isAccelerometerAvailable else { return }
motionManager.accelerometerUpdateInterval = TimeInterval(ModelConstants.sensorsUpdateInterval)
motionManager.startAccelerometerUpdates(to: OperationQueue.current!){ (accelerometerData, error) in
if let accelerometerData = accelerometerData {
self.accelX.setText("\(accelerometerData.acceleration.x)")
self.accelY.setText("\(accelerometerData.acceleration.y)")
self.accelZ.setText("\(accelerometerData.acceleration.z)")
// Add the current data sample to the data array
self.addAccelSampleToDataArray(accelSample: accelerometerData)
}
}
}
func addAccelSampleToDataArray (accelSample: CMAccelerometerData) {
// Add the current accelerometer reading to the data array
accelDataX.append(accelSample.acceleration.x)
accelDataY.append(accelSample.acceleration.y)
accelDataZ.append(accelSample.acceleration.z)
if (accelDataZ.count == ModelConstants.predictionWindowSize) {
accelDataX_mean = Double(accelDataX.mean)
accelDataY_mean = Double(accelDataY.mean)
accelDataZ_mean = Double(accelDataZ.mean)
accelDataX_std = Double(accelDataX.sd)
accelDataY_std = Double(accelDataY.sd)
accelDataZ_std = Double(accelDataZ.sd)
accelDataX_min = Double(accelDataX.min() ?? 0)
accelDataY_min = Double(accelDataY.min() ?? 0)
accelDataZ_min = Double(accelDataZ.min() ?? 0)
accelDataX_max = Double(accelDataX.max() ?? 0)
accelDataY_max = Double(accelDataY.max() ?? 0)
accelDataZ_max = Double(accelDataZ.max() ?? 0)
accelDataX.removeAll()
accelDataY.removeAll()
accelDataZ.removeAll()
}
}
override func awake(withContext context: Any?) {
// Configure interface objects here.
UNUserNotificationCenter.current().delegate = self
MyGyro()
MyAccel()
MyRoll()
self.scheduleNotifications(content_body: self.pred_action)
}
override func willActivate() {
// This method is called when watch view controller is about to be visible to user
}
override func didDeactivate() {
// This method is called when watch view controller is no longer visible
UNUserNotificationCenter.current().delegate = self
MyGyro()
MyAccel()
MyRoll()
self.scheduleNotifications(content_body: self.pred_action)
}
}
Post not yet marked as solved
I tried to enroll a developer account but it shows that we cant enroll now . and we tried so many times ,there is no error reference as well , is there anyone met this kind of situation before, really appreciate if you could share your experience. thanks so much
Post not yet marked as solved
import SwiftUI
struct ScrumsView: View {
@Binding var scrums: [DailyScrum]
@State private var isPresentingNewScrumView = false
@State private var newScrumData = DailyScrum.Data()
var body: some View {
List {
ForEach($scrums) { $scrum in
NavigationLink(destination: DetailView(scrum: $scrum)) {
CardView(scrum: scrum)
}
.listRowBackground(scrum.theme.mainColor)
}
}
.navigationTitle("Daily Scrums")
.toolbar {
Button(action: {
isPresentingNewScrumView = true
}) {
Image(systemName: "plus")
}
.accessibilityLabel("New Scrum")
}
.sheet(isPresented: $isPresentingNewScrumView) {
NavigationView {
DetailEditView(data: $newScrumData)
.toolbar {
ToolbarItem(placement: .cancellationAction) {
Button("Dismiss") {
isPresentingNewScrumView = false
newScrumData = DailyScrum.Data()
}
}
ToolbarItem(placement: .confirmationAction) {
Button("Add") {
let newScrum = DailyScrum(data: newScrumData)
scrums.append(newScrum)
isPresentingNewScrumView = false
newScrumData = DailyScrum.Data()
}
}
}
}
}
}
}
struct ScrumsView_Previews: PreviewProvider {
static var previews: some View {
NavigationView {
ScrumsView(scrums: .constant(DailyScrum.sampleData))
}
}
}
This is the ScrumsView and I get 2 Erros in Line let newScrum = DailyScrum(data: newScrumData)
It says: "Extra argument 'data' in call" & "Missing arguments for parameters 'title', 'attendees', 'lengthInMinutes', 'theme' in call"
I followed each step of the tutorial and I even downloaded the completed file of the next chapter but that didn't help me either. I looked in forums and I found that there was a func missing in the tutorial in the extension DailyScrum, but even after I added this func it still didn't work. Here is the DailyScrum File for context:
import Foundation
struct DailyScrum: Identifiable {
let id: UUID
var title: String
var attendees: [Attendee]
var lengthInMinutes: Int
var theme: Theme
init(id: UUID = UUID(), title: String, attendees: [String], lengthInMinutes: Int, theme: Theme) {
self.id = id
self.title = title
self.attendees = attendees.map { Attendee(name: $0) }
self.lengthInMinutes = lengthInMinutes
self.theme = theme
}
}
extension DailyScrum {
struct Attendee: Identifiable {
let id: UUID
var name: String
init (id: UUID = UUID(), name: String) {
self.id = id
self.name = name
}
}
struct Data {
var title: String = ""
var attendees: [Attendee] = []
var lengthInMinutes: Double = 5
var theme: Theme = .seafoam
}
var data: Data {
Data(title: title, attendees: attendees, lengthInMinutes: Double(lengthInMinutes), theme: theme)
}
mutating func update(from data: Data) {
title = data.title
attendees = data.attendees
lengthInMinutes = Int(data.lengthInMinutes)
theme = data.theme
}
}
extension DailyScrum {
static let sampleData: [DailyScrum] =
[
DailyScrum(title: "Design", attendees: ["Cathy", "Daisy", "Simon", "Jonathan"], lengthInMinutes: 10, theme: .yellow),
DailyScrum(title: "App Dev", attendees: ["Katie", "Gray", "Euna", "Luis", "Darla"], lengthInMinutes: 5, theme: .orange),
DailyScrum(title: "Web Dev", attendees: ["Chella", "Chris", "Christina", "Eden", "Karla", "Lindsey", "Aga", "Chad", "Jenn", "Sarah"], lengthInMinutes: 5, theme: .poppy)
]
}
Does someone have a solution for this?
Post not yet marked as solved
I'm working on a C++ project with XCode, at one point in my code I call shader.open (m_FilePath, std::ios::in);, shader being an ifstream variable and m_FilePath a std::string in which the shader's file path is stored.
Later in my code, when I call shader.fail () it return true unless I provide the full path in m_FilePath.
I already changed the project's directory to be the folder where the file resides, added the file refence to the project and to Copy Files in the target's build phases, setting the destination as "Products directory", but I'm still unable to use a relative file path.
What am I doing wrong?
Currently using XCode 9.4.1 on MacOS High Sierra 10.13.6.
Post not yet marked as solved
My app was no issues at all on first launch, and no crash on second launch if internet turned off but have a crash on second launch if connected with internet. Any suggestions and ideas?
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY
Termination Reason: Namespace SPRINGBOARD, Code 0x8badf00d
Termination Description: SPRINGBOARD, process-exit watchdog transgression: com.123KidsAcademy.app exhausted real (wall clock) time allowance of 5.00 seconds | ProcessVisibility: Background | ProcessState: Running | WatchdogEvent: process-exit | WatchdogVisibility: Background | WatchdogCPUStatistics: ( | "Elapsed total CPU time (seconds): 10.020 (user 10.020, system 0.000), 100% CPU", | "Elapsed application CPU time (seconds): 0.841, 8% CPU" | )
Triggered by Thread: 0
Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0 UnityFramework 0x0000000101959a74 0x100c00000 + 13998708
1 UnityFramework 0x000000010140280c 0x100c00000 + 8398860
2 UnityFramework 0x000000010138bf1c 0x100c00000 + 7913244
3 UnityFramework 0x0000000100c147e4 0x100c00000 + 83940
4 UIKitCore 0x00000001d752def4 -[UIApplication _terminateWithStatus:] + 220
5 UIKitCore 0x00000001d6de9d7c __98-[__UICanvasLifecycleMonitor_Compatability deactivateEventsOnly:withContext:forceExit:completion:]_block_invoke.261 + 344
6 UIKitCore 0x00000001d75320ac _runAfterCACommitDeferredBlocks + 296
7 UIKitCore 0x00000001d7520bfc _cleanUpAfterCAFlushAndRunDeferredBlocks + 352
8 UIKitCore 0x00000001d754da6c _afterCACommitHandler + 116
9 CoreFoundation 0x00000001aae3b4fc __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 32
10 CoreFoundation 0x00000001aae36224 __CFRunLoopDoObservers + 412
11 CoreFoundation 0x00000001aae367a0 __CFRunLoopRun + 1228
12 CoreFoundation 0x00000001aae35fb4 CFRunLoopRunSpecific + 436
13 GraphicsServices 0x00000001ad03879c GSEventRunModal + 104
14 UIKitCore 0x00000001d7526c38 UIApplicationMain + 212
15 UnityFramework 0x0000000100c18a64 0x100c00000 + 100964
16 *** 0x0000000100a57e1c 0x100a50000 + 32284
17 libdyld.dylib 0x00000001aa8f98e0 start + 4
Post not yet marked as solved
Device
Model:iPhone 11 Pro Max
Orientation: Portrait
RAM free: 60.42 MB
Disk free: 15.7 GB
Operating System
Version:16.0.0
Orientation: Portrait
Jailbroken:No
Crashed: com.apple.privacyaccounting.PAAccessLogger
EXC_BAD_ACCESS KERN_INVALID_ADDRESS 0x0000000000000058
Crashed: com.apple.privacyaccounting.PAAccessLogger
0 libdispatch.dylib 0x19554 _dispatch_source_set_runloop_timer_4CF + 32
1 PrivacyAccounting 0xf32c + 420
2 PrivacyAccounting 0x3f30 + 360
3 libdispatch.dylib 0x131cc + 148
4 libdispatch.dylib 0x40f4 + 20
5 libdispatch.dylib 0xb7ac + 672
6 libdispatch.dylib 0xc32c + 436
7 libdispatch.dylib 0x16ebc + 652
8 libsystem_pthread.dylib 0x10a8 _pthread_wqthread + 288
9 libsystem_pthread.dylib 0xe48 start_wqthread + 8
com.apple.main-thread
0 libsystem_kernel.dylib 0xbc8 mach_msg2_trap + 8
1 libsystem_kernel.dylib 0x13070 mach_msg2_internal + 80
2 libsystem_kernel.dylib 0x132b0 mach_msg_overwrite + 388
3 libsystem_kernel.dylib 0x110c mach_msg + 24
4 CoreFoundation 0x715c + 160
5 CoreFoundation 0xb5ac + 1232
6 CoreFoundation 0x1efac CFRunLoopRunSpecific + 612
7 GraphicsServices 0x1360 GSEventRunModal + 164
8 UIKitCore 0x40b2cc + 888
9 UIKitCore 0x211f88 UIApplicationMain + 340
10 HLLDriver-SEA 0x736c main + 36 (main.m:36)
11 ??? 0x258840970 (Missing)
Post not yet marked as solved
Hello,
I am trying to push a unity app to the app store (this is a first for me).
Unity builds the project fine, however when I import it in XCode, Archiving or building doesn't work.
The problem occurs when precompiling Prefix.pch
I need to use the geolocalization of the device in order to run my app.
I think that is what creates the framework related issues I am getting (it seems that the errors are in the APK and not in my code).
The files that are giving me errors are located in ios15.5>Frameworks>CoreLocation
I suppose CoreLocation is not imported ?
I did however try to Embed the CoreLocation framework in the Targets>General Tab like so but I have no idea if that is the way to do it.
It seems it is also added as embedded Framework in build phase tab.
I am definitely missing something but I don't know what to do at this point.
I am trying to do this using a mac mini with Monterrey OS, XCode 13.4, unity 2021.3.7. My target os is iOS14.
If someone could give me some advice it would be greatly appreciated !
Post not yet marked as solved
Hi everyone. Am still following up on my pending order it's now been more than 2weeks and some days and I have not received any response from your team despite many emails. Kindly someone get back to me I urgently need to use the resources as soon as possible. I eagerly await your response. Thank you.