https://kotlinlang.org logo
y

Yaniv Sosnovsky

02/08/2021, 2:03 PM
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!
👀 1
1
a

Artyom Degtyarev [JB]

02/08/2021, 3:32 PM
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.
y

Yaniv Sosnovsky

02/08/2021, 4:03 PM
@Artyom Degtyarev [JB] Thanks for the response!
a

Amritansh

02/09/2021, 12:19 PM
@Artyom Degtyarev [JB] I am running into a same problem as posted by @Yaniv Sosnovsky
a

Artyom Degtyarev [JB]

02/09/2021, 12:23 PM
@Amritansh I think we doesn’t have enough details at the moment. What Xcode version you’re using?
a

Amritansh

02/09/2021, 2:40 PM
@Artyom Degtyarev [JB] we are using
Xcode 12.2
y

Yaniv Sosnovsky

02/10/2021, 9:13 AM
@Amritansh Hey. Did you manage to solve this somehow?
a

Amritansh

02/10/2021, 5:48 PM
@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.
y

Yaniv Sosnovsky

02/11/2021, 7:53 AM
Nice. Thanks! I’ll have it checked
@Artyom Degtyarev [JB] @Amritansh Thanks! the issue was indeed resolved. Our app was not rejected by Apple.
👍 1
4 Views