4 Replies
      Latest reply on Dec 5, 2019 4:31 AM by shan49
      shan49 Level 1 Level 1 (0 points)

        Is there a way to load dylib in debug environment?

        • Re: dylib: file system sandbox blocked mmap()
          eskimo Apple Staff Apple Staff (12,455 points)

          Is there a way to load dylib in debug environment?

          Can you expand on your requirements here?  It is possible to load a dylib using dlopen on iOS, even in a production environment, as follows:

          1. Wrap it in a framework.

          2. Include that framework in your app’s Frameworks directory.

          I presume that this doesn’t meet your requirements, in which case it’d be helpful if you explained those requirements in more detail.

          Share and Enjoy

          Quinn “The Eskimo!”
          Apple Developer Relations, Developer Technical Support, Core OS/Hardware
          let myEmail = "eskimo" + "1" + "@apple.com"

            • Re: dylib: file system sandbox blocked mmap()
              shan49 Level 1 Level 1 (0 points)

              Thank you for reply.

               

              I am trying a develop tool to hot reload changed code without rebuilding, that will download a dylib to document path and load it by "dlopen".

              And simulator is ok.

              I know it works if a put the dylib into app self. But now the dylib path is document, and it is blocked.

              So...how should i do?

               

              Thand you.