I want to compile and install an app on my old iPhone 4 running iOS 7 -- is there any way to do that on a 2018 Mac running High Sierra? How about an older Mac running 10.9? Yesterday I was able to compile the app with XCode 5 on the older Mac -- but there aren't any active profiles on it, and XCode 5 seems like it will no longer connect to the server to download certificates/profiles, so I don't know how I can get the app onto the phone. I tried exporting the Developer Profile from my current machine's XCode, and it seemed to import into XCode 5 -- but it doesn't show any profiles/certificates, and it just shows an error about trying to get information from the server in the section where it would normally show the profiles.Any suggestions?
I have a window with some NSTextFields. When I click in one and edit the value and press return, I want the focus to go back to what it was before. I don't want the blue ring around the text field and I don't want further keystrokes going to that text field. I would have thought this would happen automatically.I tried these, and none of them work sender.resignFirstResponder() sender.window?.makeFirstResponder(nil) InspectorWindowController.window?.makeFirstResponder(nil) AnotherWindowController.window?.becomeFirstResponder()I'm doing these at the end of my IBAction associated with the text field. Maybe I have to do it from somewhere else?Thanks
I have an NSTableView, and I am trying to redraw one row of it when its data changes.I've tried both of these: table.reloadData(forRowIndexes:IndexSet(integer:row) , columnIndexes: IndexSet(integer:0)) table.drawRow(row, clipRect:table.bounds)But it is not ever calling the draw function for the table row cell. The actual item associated with the table row has not changed -- is that why it is not updating? Some sub-data within the item has changed, that's why it needs to be redrawn.Anyone know what the problem could be?Thanks!
My Mac app has two windows. When one of them is active and I press the spacebar, then it is captured by my keyDown override for the window. But for the other window, spacebar does not trigger any event for keyDown. Other characters like letters trigger the event for both windows. Why would spacebar work on one window but not the other?ThanksBob
I have two windows and I want to be able to use the mouse on either one, without having to click first to 'activate' the window. I found the -acceptsFirstMouse method to override on NSViews, and it works on my main window. But the other window is an NSOutlineView, which in storyboard is a huge mess of stacked sub-views and controls. I went through and subclassed each of these to add the acceptsFirstMouse function, but it still doesn't work. It makes me click to activate the window before I can click on items in the outline view.But some of the items in the view hierarchy must not inherit from NSView, because they give me an error when I add the override. Is there any way to do this? NSTableColumn, NSTextFieldCell for example. Given that NSTextFieldCell is the furthest thing in the hierarchy and is probably receiving the mouse click, am I screweed? Is there any way to get this to work???EDIT: I also tried setting 'RefusesFirstResponder' on these NSTextFieldCells in the storyboard, but that did not help.Thanks
Post not yet marked as solved
Usually when I am running/debugging an app, pressing the 'play' button to go again will kill the old process and start a new one. But recently XCode has been leaving phantom processing running when I do this. I have three or four of the same app processes in the dock. The old ones are not really running -- they don't do anything when I click on them. But I have to Force Quit them to get them to go away. Anyone know what causes this, how to prevent it?
I can't use Instruments at all because of this message. I only found one thread on the web about it, saying to run some sudo command on a directory that doesn't exist for me. Anyone know how to fix this error?
Post not yet marked as solved
I am recompiling an old app and getting this error:"App installation failed - This application’s application-identifier entitlement does not match that of the installed application. These values must match for an upgrade to be allowed."How to fix it? I know that if I delete the app on the phone, then it will install the fresh one OK. But I have app data I don't want to delete. Also -- what about other users who update, will they be able to?Thanks
Post not yet marked as solved
Hello, I'm not able to capture GPU frames on my iPhone 7. I tried rebooting the phone but that doesn't help. I'm using XCode beta 9.3 beta 4. "Unexpected Replayer Termination, Replayer terminated expectedly with error code 5. Please export the frame capture file then file a radar"Sometimes it even crashes XCode itself.Anybody has any solution or workaround for this?Thanks!
Post not yet marked as solved
I've seen some documentation on the Shader Profiler that is part of GPU frame capture for Metal. How do I get to it? If I select a fragment shader function in my GPU trace, it shows the shader code, but I don't see anything like the grey lines and execution times that are part of the profiler. How do I enable that?
Post not yet marked as solved
I finally updated to High Sierra today, because Apple broke GPU frame capture in a recent Sierra update and then declared they had no intention of fixing it when I filed a bug report. After updating, my Metal app runs less than half the speed than it did in Sierra. This is on a late 2012 iMac with an NVIDIA GeForce GTX 680MX 2 GB. Anyone know why this is? Have I now got to wipe my hard drive and go back to Sierra to get my app speed back? I looked on the NVIDIA site to see about drivers, but I don't think Macs even work with separate graphics drivers. Thanks Bob
Post not yet marked as solved
I'm trying to encode/decode some classes with subclasses, switching from NSCoder to Codable. The encoding looks like it works, but decoding a custom class with subclasses doesn't seem to work at all. It does not throw an error, but it also never calls any of the decoder initializers. It's probably something I'm doing wrong, but does anyone know of any pitfalls with this, a common reason why it might not be working?
Post not yet marked as solved
I am trying to debug my Metal app on OSX, and when I press the camera icon to grab a GPU frame, it crashes with a SIGABRT and this error message up top in XCode. What does that mean? This is the first time in a while that I'm working with this app -- I never had a problem capturing GPU frame before.The console has a lot of output, but this is the start of it:2018-02-10 18:11:57.794592-0600 XX[72261:9637722] -[_MTLLibrary newExternFunctionWithName:]: unrecognized selector sent to instance 0x60600030a9a02018-02-10 18:11:57.797645-0600 XX[72261:9637722] [General] An uncaught exception was raised2018-02-10 18:11:57.797685-0600 XX[72261:9637722] [General] -[_MTLLibrary newExternFunctionWithName:]: unrecognized selector sent to instance 0x60600030a9a02018-02-10 18:11:57.797888-0600 XX[72261:9637722] [General] ( 0 CoreFoundation 0x00007fff875ca57b __exceptionPreprocess + 171 1 libobjc.A.dylib 0x00007fff9c9a91da objc_exception_throw + 48 2 CoreFoundation 0x00007fff8764af14 -[NSObject(NSObject) doesNotRecognizeSelector:] + 132 3 CoreFoundation 0x00007fff8753dc93 ___forwarding___ + 1059 4 CoreFoundation 0x00007fff8753d7e8 _CF_forwarding_prep_0 + 120 5 libMTLInterpose.dylib 0x0000000101b63b61 ___ZL19MTLHarvestResourcesP26MTLHarvesterRuntimeStreamsPU21objcproto10MTLLibrary11objc_objectRKNSt3__13setIU8__strongPU22objcproto11MTLFunction11objc_objectNS3_4lessIS7_EENS3_9allocatorIS7_EEEEj_block_invoke + 459 6 MetalTools 0x000000010292ae83 -[MTLToolsPointerArray enumeratePointersUsingBlock:] + 272 7 libMTLInterpose.dylib 0x0000000101b528de
Post not yet marked as solved
Hello, This week I've had a miserable time trying to get video frames from a Quicktime movie and display them in a Metal texture. It has been far harder than I anticipated. I just want to show frame 0, and then step back and forth through the video frames with the arrow keys. After failing with the AVPlayererItemVideoOutput.hasNewPixelBuffer(forItemTime: time) function, I'm now trying to use the seek() function. This almost works. With the video paused I call the seek function for the time I want, and it says it succeeds. However, every few frames, the hasNewPixelBuffer() function returns 'false' and the copyPixelBuffer() function just returns the same data as the currently displayed frame. At first, thought it might have something to do with the fact that the video (h264) has frame-reordering. But I get the same results when I use a video with all its frames in the correct order. I've tried the seek tolerance set to 0, and then also various values like half a frame or less, in case there was some floating point roundoff issue with the times I was calculating. Nothing seems to work.Anyone know how to do this? It ought to be so simple and yet I've tried everything I can think of. I've also tried AVAssetImageGenerator and it did the same thing. AVAssetReader will report all the frames sequentially, but that doesn't really help if you just want random access to the frames.I hate AVFoundation after this week -- why does it have to be so difficult to do this simplest of video tasks...Any suggestions appreciated.