Post

Replies

Boosts

Views

Activity

Adding different capabilities to a Distribution profile for visionOS and iOS app
I have an app that runs on both iOS and visionOS (native). Both app use the same project, just some files and code segments are different. We do not use automatic signing. Instead we use a Distribution profile. When creating a distribution profile and adding capabilities there are certain capabilities we are using on iOS that are not available on visionOS. Like the com.apple.developer.kernel.increased-memory-limit and the Extended Virtual Addressing Entitlement. My understanding is that we can only have one Distribution profile per app (may be wrong understanding). My question is how can we have two separate distribution profiles for iOS and visionOS, so iOS can have those extra capabilities that aren't available on visionOS? I tried to create two separate targets, one for iOS and one for visionOS, but that still gives me the same issue of having the distribution profile being the same and not being able to make it unique for iOS and visionOS. Is there a correct approach to setting up the Xcode project or the distribution profile? I'm new to visionOS development and distribution profiles, any guidance would be appreciated. Let me know if you have any questions or need more clarification.
0
0
573
Jun ’24
AnimationLibraryDefination memory leak Realitykit ARKit
So I have a ARView using realitykit. I am reusing the ARView. I have a Entity that has animations (stored in .usdz file). I play the animation with the following line of code. hummingbird = try! Entity.load(named: "bird") for animation in hummingbird.availableAnimations {             hummingbird.playAnimation(animation.repeat(duration: 120.0)) } However I noticed there is a memory leak. using Instruments I found it was at the playAnimation line. I have no clue how to fix this. At the end of the ARView I do this: hummingbird.stopAllAnimations(recursive: true) hummingbird = nil I thought that should be enough. But it isn't. In the image there are 2 instances. That from running the same arview 2 times. Basically my set up is startVC->ARView->backToStartVC->backToSameARView (with new configuration). And so on. Any idea would be great. And if you have any question or need clarification. Please ask.
0
1
951
Jun ’22
GKLocalPlayer isPersonalizedCommunicationRestricted is always true
So, I am making a game using GKVoiceChat. And I want to make sure that the local player is able to participate in voice chats. So I use the .isPersonalizedCommunicationRestricted. No matter what account I uses (Sandbox or personal) the variable is always true! Im 18+. And have no restriction set on the phone/iCloud account. I know for a fact that I am authentication the player properly because I am able to start and play a multiplayer match. And also isMultiplayerGamingRestricted = false. And Ideas. If you need code just ask :)
1
0
832
Jan ’21
App Store Connect Operation Error
So, recently I changed my App Icon for my watchOS and iOS app. But when I try and upload the build to App Store Connect I get an error about my App Icon for my watchOS application. stating this: App Store Connect Operation Error Invalid Icon. The watch application 'Bullet Defender.app/Watch/Bullet Defender.app' contains an icon file 'Icon Image-AppIcon-watch-29x29@2x.png' with an alpha channel. Icons should not have an alpha channel. And this message happens with all the watch image sizes. But here's the problem. I checked the file name. And these file names are no where in my project or on my computer. I don't Know where these Images icon files are coming from. In fact I checked the icon images used and the file name is different (never changed the names) and there is no alpha channel with any or my images. Any help would be amazing If you need more information just ask.
0
0
739
Jul ’20
UITableViewAlertForLayoutOutsideViewHierarchy
Hi i get an error[TableView] Warning once only: UITableView was told to layout its visible cells and other contents without being in the view hierarchy (the table view or one of its superviews has not been added to a window). This may cause bugs by forcing views inside the table view to load and perform layout without accurate information (e.g. table view bounds, trait collection, layout margins, safe area insets, etc), and will also cause unnecessary performance overhead due to extra layout passes. Make a symbolic breakpoint at UITableViewAlertForLayoutOutsideViewHierarchy to catch this in the debugger and see what caused this to occur, so you can avoid this action altogether if possible, or defer it until the table view has been added to a window. Table view: <UITableView: 0x102094800; frame = (0 0; 320 568); clipsToBounds = YES; autoresize = W+H; gestureRecognizers = <NSArray: 0x282dac3f0>; layer = <CALayer: 0x2823fb9c0>; contentOffset: {0, -64}; contentSize: {320, 248}; adjustedContentInset: {64, 0, 49, 0}; dataSource: <IOUUOMe.UOMeViewController: 0x10140a340>>And really the question is what is this error stating and how do i fix it. This happens when i tap an UIBarButton on an Navigation Bar. I have put an symbolic breakpoint which is how i found the button that was causing the error but how do i get rid of this error. and fix it properly
26
0
40k
Aug ’19
unable to install update. An error occurred installing iOS 13 public beta
So I previously had the iOS 12 beta profile in my iPhone SE. then I went to the website were I enrolled in the iOS 13 beta. It made me download a profile and install it. Then it told me to restart my device which I did. Then I checked my profile and the iOS 12 public beta profile was gone and the iOS 13 public beta was installed. Then I went to software update. And presses download and install. Then I got an error saying “Unable to install update. An error occurred installing iOS 13 Public Beta”. So I retried like 5 times. And then I surfed the internet and they said to try deleting the profile and/or the deleting the download in iPhone storage. I tried that like 3 time and tried pressing install. Never worked I always got the same error. I tried restarting my device and stuff. That never worked to. So just wondering how to fix that.Anybody got suggestions?
16
0
16k
Jun ’19