I have a Solar2D app (native, so it connects to and runs Objective-C and Swift modules) and I want to add in a module that is available in CocoaPods (SwiftAudioPlayer). Although an experienced programmer, I am not fluent using Xcode, and have done only a few small projects.
After running pod install and restarting my app as instructed, I first encountered:
- the 'sync' error [fixed this, see first comment]
- "Target Support Files/Pods-SoundScape/Pods-SoundScape.debug.xcconfig or include the Target Support Files/Pods-SoundScape/Pods-SoundScape.debug.xcconfig in your build configuration (CoronaApp.xcconfig)" [fixed, see second comment]
For the sync error, several forum suggestions say to add user-defined PODS_ROOT and PODS_PODFILE_DIR_PATH (and other things I tried with no effect). This gets rid of the error, but creates a new problem, pod_install suggests:
- Use the $(inherited) flag, or
- Remove the build settings from the target.
Well, the second just puts me back to where I started with the sync error, and the first does not change anything.
For problem 2, the link to the xconfig, I cannot find any link that works, that finds that file, even an explicit disk path to the file. Always 'included file does not exist'.
Perhaps not surprisingly, building the project results in: Library 'Pods-SoundScape' not found
And, of course, import SwiftAudioPlayer in a Swift player gives me "no such module".
