omz:forum

    • Register
    • Login
    • Search
    • Recent
    • Popular

    Welcome!

    This is the community forum for my apps Pythonista and Editorial.

    For individual support questions, you can also send an email. If you have a very short question or just want to say hello — I'm @olemoritz on Twitter.


    Presenting ViewController

    Pythonista
    objcutil objc
    6
    47
    29631
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • filippocld
      filippocld last edited by filippocld

      @MartinPacker This is very strange, indeed.
      @omz Did you make any progress?

      1 Reply Last reply Reply Quote 0
      • omz
        omz last edited by

        Turns out it isn't quite as easy as I thought... :/

        I wanted to release a new beta yesterday, but then I did some final testing with the build I actually uploaded to TestFlight, and while it worked totally fine when testing in Xcode, it turned out that the TestFlight exhibited the very same crashes I had before... :/

        Release builds have a slightly different configuration in Xcode, so I've tried a lot of things to make the release build behave like the debug build, but I've already spent hours with this, and haven't found out what causes the different behavior so far. I'm still somewhat optimistic that I'll be able to sort this out eventually, but it's probably going to take a bit longer than I expected...

        1 Reply Last reply Reply Quote 0
        • filippocld
          filippocld last edited by filippocld

          No, I believed! :-(

          1 Reply Last reply Reply Quote 0
          • filippocld
            filippocld last edited by filippocld

            Quote:
            "The biggest difference between these is that: In a debug build the complete symbolic debug information is emitted to help while debugging applications and also the code optimization is not taken into account. While in release build the symbolic debug info is not emitted and the code execution is optimized. Also, because the symbolic info is not emitted in a release build, the size of the final executable is lesser than a debug executable.

            One can expect to see funny errors in release builds due to compiler optimizations or differences in memory layout or initialization. These are ususally referred to as Release - Only bugs :)

            Release configuration by default uses different code optimization than Debug configuration, so some code lines can be optimized and skipped

            You can check/change configurations at Target -> Build Settings -> search for Optimization Level"

            1 Reply Last reply Reply Quote 0
            • georg.viehoever
              georg.viehoever last edited by

              My favorite problem with optimized builds (in Linux) is that I forget to mark a variable as volatile . Works for debug builds, but in optimized builds the compiler often holds values in registers, and voila the update from a different thread gets lost.

              Maybe its is something like this.
              Georg

              1 Reply Last reply Reply Quote 0
              • filippocld
                filippocld last edited by filippocld

                @omz So, I installed the new build and IT WORKS, YES!
                Can you tell me how did you achieve that?
                Thanks for your help, pythonista is the most powerful and useful app ever with objc integration 😍.
                One last thing: what is restype for?

                1 Reply Last reply Reply Quote 0
                • filippocld
                  filippocld last edited by

                  This post is deleted!
                  1 Reply Last reply Reply Quote 0
                  • First post
                    Last post
                  Powered by NodeBB Forums | Contributors