-
Notifications
You must be signed in to change notification settings - Fork 162
Fix Swift project handling #22
Fix Swift project handling #22
Conversation
Thanks for the pull request. I don't have any Swift projects yet. Could you change the line to if ['.plist', '.bundle', '.framework'].any? { |a| file.name.include?a } and test if it works? It's more Ruby like 👍 |
@KrauseFx It doesn't seem to work. |
Are you sure? irb(main):002:0> ['.plist','.bundle', '.framework'].any?{|a| "name.bundle".include?a}
=> true
irb(main):003:0> ['.plist','.bundle', '.framework'].any?{|a| "name.somethingelse".include?a}
=> false |
I had to change the guard to something like: if file.name.include?'.plist' and not ['.bundle', '.framework'].any? { |a| file.name.include?a } (I need to exclude Info.plist files coming from within frameworks) |
Oh, I'm sorry, that was my mistake. Nice catch! Looks good |
Could you add that? I'll merge the PR then. |
Done and tested locally 😉 |
Thanks @lvillani! 👍 |
Just released a new version for this fix: https://github.com/KrauseFx/deliver/releases |
Hey @lvillani |
@KrauseFx Yes but I had to build the IPA with Xcode and then export an IPA from the Organizer. Alternatively, there are a couple of scripts around which inject the "SwiftSupport" directory in the IPA file. I'm going to file a bug report to push for a fix in xcodebuild (either that or remove the PackageApplication step altogether, since in the current form it doesn't really work. They say it is "not supported" but leaving an half-implemented feature lying around is as detrimental as not having it at all). |
Good to know. So, you can prepare and test a fix for Swift projects? Unfortunately I don't have any apps, which are built with Swift to test it... |
Are we talking about adding a test case for this issue or for another one? |
Sorry, I was not talking about unit tests. I meant more like: Could you (manually) test the submission of a Swift app with one of those scripts you were talking about? |
@lvillani Could you send me some links to the tools which helped you? |
I built my app with Xcode's GUI, then exported the IPA and did the final upload with |
@lvillani it looks like @sinoru found a solution for the Swift problem: nomad-cli/shenzhen#178 |
Cool! I might give it a try the next time I push an update. |
Swift project may bundle additional ".framework" bundles, make sure to not search them while looking for the application's Info.plist file.