I am using Cryptoswift framework for encryption and decryption. I am using an Xcode project inside another Xcode project.The subproject is not able to access the framework Cryptoswift in spite of using pods for the main project. In addition to that, I have also added the framework to the "Linked Frameworks and Libraries".The Project works fine in the simulator but is not working on the device.When I run it on the device I get the error
var enc = try AES(key: FirstStepEncryptionKey, iv: "", blockMode:.CBC, padding: NoPadding()).encrypt(firstStepArray)
ERROR:"Use of unresolved identifier 'AES'"
Though the import statement does not show any errors.I am the only developer in my company and there is no one to guide me.Please help me clear this.
UPDATE: I added the files to embed binary and still it crashes saying "dyld: Library not loaded: @rpath/CryptoSwift.framework/CryptoSwift Referenced from: /var/containers/Bundle/Application/48894FB2-0CDB-4B8D-A763-1C57B3EDAE41/Vaya_Tracker.app/Vaya_Tracker Reason: image not found"
Fix: I had to add the CryptoSwift.xcodeproj file into my Xcode project instead of adding it through pods or Carthage.