Post not yet marked as solved
5
Views
I have admin role. but I won't be able to access on Certificates, Identifiers & Profiles page.
https://developer.apple.com/account/resources/identifiers/bundleId/add/
when I tried to access on this page, it is saying
'This resource is only for developers enrolled in a developer program or members of an organization’s team in a developer program.'
please help me to access on this page.
thanks
Post not yet marked as solved
11
Views
I am currently working with ARKit for one of my apps right now. I ran into this one weird issues and I have been stuck on it for a while.
The app has a bottom tray with 4 tabs total. The 2nd tab is where the ARKit component is. In the ARKit tab, the app is supposed to be able to scan a QR code and display a custom view as an overlay on top of the QR code. I was able to achieve that by doing something like this.
plane.firstMaterial?.diffuse.contents = self.imageDisplayView. I got as far as having the app smart enough to scan different QR codes and display different kind of custom views, etc.
Here is where it gets weird, once the app scans the QR code and display a custom view, I can click on one of the buttons in the bottom tray to navigate away from the ARKit tab, but after that, the whole entire app locks up and nothing is clickable anymore.
I have tried calling session.pause() in viewDidDisappear and not calling it and it doesn't make any difference.
Any advice would help. Thank you
Post not yet marked as solved
14
Views
Hello,
How can you program custom NFC Data onto a iPhone which can be read from a NFC-Reader?
(Like Apple Pay)
Thanks for Help!
Post not yet marked as solved
10
Views
App Store Connect requires four different screen resolutions for preview videos -- full screen iPhone, home button iPhone, iPad and Mac. Will the app store display the video for a different device than the device the app store is viewed on? For example, if I create only an iPad video, will it display to users browsing on an iPhone?
Or do I really need to record and edit four separate versions of each video for all users to see it?
Post not yet marked as solved
11
Views
I’m trying to prevent the user from spoofing his current location using third party software, for ex: imyfone anyto or something similar, is CLLocationSourceInformation
supposed to detect this behavior or not? I couldn’t find much information about this API.
Post not yet marked as solved
12
Views
All major platform pthread APIs except for Apple, provide a pthread_setname_np call that takes a pthread_t handle as the first argument. Even pthread_getname_np takes a pthread_t handle. But Apple, only allows setting the name from within the thread. This means std::thread abstractions in C++ can't or don't provide a reasonable call to set or change the thread name from another thread.
pthread_setname_np(pthread_t thread, const char* name); <- standard api
pthread_setname_np(const char* name); <- Apple's api
Could this be standardized? Given that [NSThread setName:] exists and can perform this function, there must be a way to perform this.
Post not yet marked as solved
11
Views
UIVisualEffectContentView.contentView.addSubview appears to be actually trying to add the sub view to the parent UIVisualEffectView in Swift Playgrounds. Code that works fine in an actual iOS app causes Swift Playgrounds to produce error: "Do not add subviews directly to the visual effect view itself, instead add them to the -contentView." Except that is exactly what the code is doing "blur.contentView.addSubview(vib)" So the internal implementation in Swift Playgrounds must be doing something wrong. Again the same code works fine in an iOS app.
Post not yet marked as solved
11
Views
Hello,
I am trying to get a FileHandle for a specific file on an external hard disk.
My app is sandboxed and in order to be able to get a FileHandle I am showing a NSOpenPanel so the user can grant permission to access this disk.
After the user has granted permissions, I use the following code to get the handle:
guard let readDescriptor = try? FileDescriptor.open(readUrl.path, FileDescriptor.AccessMode.readWrite) else { return }
I get the following error when this code runs:
The operation couldn’t be completed. Operation not permitted
What I don't understand is the fact that this code only fails on disks that have the MS-DOS file system. I have tested various USB sticks, SD cards and external hard drives.
It works fine for the APFS, but once I format the device as MS-DOS, the code fails.
Has anyone any idea why that is?
Regards,
Sascha
Post not yet marked as solved
16
Views
So I have this recursive function in SwiftUI. Each iteration takes on average 50 ms on a late model iPhone. The whole thing will take a minute or so. When the user kicks it off he expects this and has nothing else to do in the app until the exit condition is reached and it is done. But of course I want it to finish as soon as possible and I want the user to be able to abort it early if he becomes impatient. Also after each iteration it updates a line chart to show its progress to the user. For speed, I’m running it on the main thread like this:
.onChange(of: kickItOff) { value in
recursiveFunction()
}
func recursiveFunction() {
Dispatch.main.async() {
step1()
step2()
step3()
if !exit {
recursiveFunction()
}
}
}
Each step in an iteration and the iterations themselves must execute serially.
This runs fast and the UI is not blocked. Just one problem. Each time it is kicked off it takes longer and longer to finish. The 4th run takes twice as long as the 1st.
I profiled it with the signpost instrument and can see that each step in the recursive function does not change duration from iteration to iteration. It is the time gap between iterations that increases.
Does anyone know why this is happening and hopefully have a solution?
Post not yet marked as solved
37
Views
How would I take a screen shot of a iPad 12.9 if I don't own one. I've tried Xcode and my ipa won't load.
Post not yet marked as solved
26
Views
`set theName to text returned of (display dialog "Please, enter name of your file:" default answer "" with icon note buttons {"Cancel", "Continue"} default button "Continue")
set New_script_path to "/Users/" & theUser & "/Library/Application Support/GD Saver/Scripts/" & theName & ".txt"
--I need to create a text file in New_script_path
Post not yet marked as solved
13
Views
How can I add the generated numbers from the terminal to contacts as name and number.
for example type in the Terminal % echo {00..99}
then the terminal makes 00 01 02 03 etc.
00. I would like to save these numbers as a contact for first name and number.
german : Wie kann ich die generierten zahlen vom Terminal zu Kontakten als Namen und Nummer hinzufügen
bsp gib im Terminal ein % echo {00..99}
dann macht der Terminal 00 01 02 03 usw.
00 diese Nummern möchte ich als Kontakt speichern für Vorname und Nummer
Post not yet marked as solved
18
Views
I'm on my MacBook Pro (13-inch, M1, 2020) and just yesterday I lost all sensation while clicking with my trackpad. My trackpad still works and I can click with it I just don't get and feeling of pushing it down or a sound when I push it down. I have tried changing my trackpad settings to factory default and restarting my computer but nothing seems to work, there have been brief periods of like 10 seconds where I can feel the sensation but I haven't had one in a couple of hours. Also yes I can still press down on my trackpad and there are no signs of the battery expanding. Any help will be appreciated.
Post not yet marked as solved
24
Views
Hi,
So after updating my mac to Catalina few week ago, the system preferences was keeping asking to "accept terms and condition" but for some reason I could not open the tab to accept them.
Since I could not remember the password,I logged off my apple ID and I re-set the password. Everything was absolutely unchanged. Suddenly after log back in, all the folders and document I had in my desktop (that technically were in iCloud) disappeared for 20min to then reappear suddenly without me doing nothing.
Today I was open the folder in my desktop searching for a document and it is gone, it is not there anymore. I went to iCloud.com and ALL the files there were from either mid 12/2021 or early 01/2022. that's it. lost 5 month of work.
If I open one of the file that I opened and modified yesterday to restore a more recent version, it just gives me the one from January and none of these form yesterday.
I did try to go on iCloud and restore the file but it says "no file to restore" and also there was no file in "deleted". Anyone can help?
Camilla
Post not yet marked as solved
26
Views
While I appreciate the work that Apple puts into the developer documentation, I find it very hard to use.
Among other things, I'm looking for a reference (free / paid / online / dead tree) that describes the views available in SwiftUI with the applicable view modifiers and examples of how to use them.