feat: add a dummy swift file to the example if the library uses swift - #525
feat: add a dummy swift file to the example if the library uses swift#525mfazekas wants to merge 1 commit into
Conversation
|
Hey @mfazekas thanks a lot for the PR! I was able to validate the issue on my end.
You can find the exact same implementation done in @bacons/xcode here. |
|
@atlj sure we can do it in javascript I was not aware of '@bacons/Xcode'; . Cocoapods does use ruby and |
9ca6093 to
72a579c
Compare
0b45375 to
7799977
Compare
|
AppDelegate is now a swift file so this is pointless |

Summary
It seems that swift debugging in libraries doesn't really work unless the app itself has a swift file. See #517
There is an empty
File.swiftin example-legacy template but it's not added to the project. This change executes a ruby script to include that file in the Xcode project.Note that it requires working
rubyinstall andxcodeprojgem available and only run on Mac. Which is reasonable as , ruby and xcodeproj are decencies of cocoa pods.Test plan