8 Replies
      Latest reply on Mar 14, 2019 12:14 PM by cwoolf
      Pudgy138 Level 1 Level 1 (0 points)

        I'm on a 2018 MacBook Pro 15" and I've never been able to even start Instruments. Do I need to pay Apple?? I can use most everything in Xcode so far to look at my app, but I'd really love to profile my app. Console shows no errors after I get the General error prompt. Lucky me? It used to say "Fatal error" lol. What the heck?

        • Re: Profiler "General error -- see console"
          KMT Level 9 Level 9 (14,655 points)

          What version Xcode?

           

          Otherwise, I'm not confident that Xcode's free provisioning allows for your device to be properly provisioned for development so that data can be collected from it. Example is the lack of access to member center/devices. Remember, those free profiles are only good for one week.

            • Re: Profiler "General error -- see console"
              Pudgy138 Level 1 Level 1 (0 points)

              Version 10.1

               

              I'm not sure I follow the free thing, I don't mind paying Apple -- I just figured you only had to pay for a dev license to sell on App store. I want to be able to build a decent app using proper tools before I consider selling it lol.

                • Re: Profiler "General error -- see console"
                  KMT Level 9 Level 9 (14,655 points)

                       >just figured you only had to pay for a dev license to sell on App store

                   

                  No, the 'free thing' is just for toe dipping, and carries certain restrictions.

                   

                  See this thread with a previously moderated link that covers Xcode's Free Provisioning

                   

                  Good luck.

                    • Re: Profiler "General error -- see console"
                      Pudgy138 Level 1 Level 1 (0 points)

                      I didn't see anywhere anything about Instruments being disabled for free provisioning. Furthermore none of the restrictions on free provisioning apply to me currently. Though I did wonder why suddenly after a period my apps stopped functioning lol. Relieved it isn't something in my code.

                        • Re: Profiler "General error -- see console"
                          KMT Level 9 Level 9 (14,655 points)

                          Let's take a different approach, assuming by 'not even start' means run to use vs. being able to run to use but not being able to run an active test session tied to a given app.

                           

                          Locate Xcode in the Finder, then right-click and choose to 'show package contents'. That should reveal folders, one of which is named 'contents'. Toggle that folder to see what it contains, then do the same with 'applications'. Inside that folder you should see an item named 'Instruments'. Double click it to run, and see if it succeeds.

                           

                          If not (or you don't see Instruments in the Finder), then I agree it's most likely a corrupted/failed Xcode install. If it does run on it's own, then you may need to hit Xcode/Instuments Help on using Instruments to confirm you've followed the correct process for your app, etc.

                           

                          Ref:

                  • Re: Profiler "General error -- see console"
                    cwoolf Apple Staff Apple Staff (40 points)

                    That's typically a corrupted install or system partition.  I've added a diagnostic window to the most recent Beta to at least provide a hint to the underlying cause.  It's rare that this happens, but I've seen bug reports.

                     

                    More precisely, that error occurs when Instruments can't locate pieces of its enclosing Xcode, the Xcode has been corrupted in a way to invalidates code signatures (causing the plug-ins not to be loaded),  or the system partition has the wrong permissions to allow it to create temporary storage.  In any of those cases, there isn't enough there to bring up a healthy, functional application.

                     

                    Start with Disk First Aid on your system partition to fix busted permissions, and if that still doesn't work, maybe you can tell me how you installed your copy of Xcode and if you have any other copies on your system.

                      • Re: Profiler "General error -- see console"
                        Pudgy138 Level 1 Level 1 (0 points)

                        @cwoolf, Thank you for your help! I ran Disk First Aid and Instruments still acted up. I just installed Xcode from the App store. There's no other version on my system.

                          • Re: Profiler "General error -- see console"
                            cwoolf Apple Staff Apple Staff (40 points)

                            If we assume that this underlying error will also take out the command line version of the tool, maybe the command line will give you more diagnostic information.

                             

                            From Terminal,  try running :

                             

                            instruments

                             

                            Lower case "I".  Just running that command without any arguments should get you to the point the UI reaches before the template chooser window.  Let me know what happens when you try that.