Yaniv Sosnovsky

    Yaniv Sosnovsky

    1 year ago
    Hi guys. I’m trying to build a framework for iOS using cocoapods plugin for KMM. When the process is finished, the binary file is marked as a ‘document’ file instead of ‘unix executable’. This doesn’t seem to be a problem when running the hosting application with XCode, but it gets rejected by Apple with this message: “ERROR ITMS-90171: “Invalid Bundle Structure - The binary file ‘…/MyFile’ is not permitted”. I believe we get the message because of the incorrect document type. We know we can ‘force’ the file to be marked as ‘unix executable’ by running ‘chmod 755 ’ on the file name, but this feels like a terrible solution (if one can call it a ‘solution’ at all). Any ideas would be welcomed!
    Artyom Degtyarev [JB]

    Artyom Degtyarev [JB]

    1 year ago
    Hello, @Yaniv Sosnovsky! I was unable to find any similar problems being reported already. Probably worth filing an issue at the kotl.in/issue, with some environment details, versions etc.
    Yaniv Sosnovsky

    Yaniv Sosnovsky

    1 year ago
    @Artyom Degtyarev [JB] Thanks for the response!
    a

    Amritansh

    1 year ago
    @Artyom Degtyarev [JB] I am running into a same problem as posted by @Yaniv Sosnovsky
    Artyom Degtyarev [JB]

    Artyom Degtyarev [JB]

    1 year ago
    @Amritansh I think we doesn’t have enough details at the moment. What Xcode version you’re using?
    a

    Amritansh

    1 year ago
    @Artyom Degtyarev [JB] we are using
    Xcode 12.2
    Yaniv Sosnovsky

    Yaniv Sosnovsky

    1 year ago
    @Amritansh Hey. Did you manage to solve this somehow?
    a

    Amritansh

    1 year ago
    @Yaniv Sosnovsky no we could not. This issue is blocking us and it looks like a bug to us
    @Yaniv Sosnovsky so the ios dev was able to make it work for us. This is what she told me
    This issue for me was caused by including the framework in the bundle. Ie, I was copying the .framework file into the app bundle. This isn’t necessary as the framework is statically linked against the main app binary.
    Most likely, you have a folder containing the .framework that you copied into your project (like an “external” or “ThirdParty”). That folder should not have membership to any target.
    Yaniv Sosnovsky

    Yaniv Sosnovsky

    1 year ago
    Nice. Thanks! I’ll have it checked
    @Artyom Degtyarev [JB] @Amritansh Thanks! the issue was indeed resolved. Our app was not rejected by Apple.