New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Trouble using "use_frameworks!" option via CocoaPods v0.36.0 #159
Comments
We are looking into it, and the support is coming. In the meanwhile, please use CocoaPods 0.35.0. |
CocoaPods 0.36.0 has got out of the Beta/RC stages (a little earlier than we expected), so reopening the thread. We are actively working on adding support for |
Just a +1 -- causing issues here too. Want to use the library as part of a dynamic framework to share code between our main app and an extension so it pretty much needs to be included as a framework via CocoaPods and 0.35 isn't an option. |
+1 as well. I see similar issues if I try and use any of the subspecs (rather than just pulling the whole project in) with static libraries. You may also be able to simply your own scritps for building frameworks using https://github.com/CocoaPods/cocoapods-packager. |
I have a feeling this might be a decent size task to get it building as a
|
Seems mostly to be to do with the "odd" way the headers are handled in the source code (lots of odd relative references) rather than the framework referenced which see to build just fine. |
Yeah, I think that is the main issue with the library itself. However this library also has no less than 8(!) external dependencies. If I understand correctly how CocoaPods is working, all of these other libraries will also need to build as frameworks also. I haven't gone through them all, but I'd suspect others may have problems too. Mantle comes to mind especially, as they don't even officially support using it via a CocoaPod. Honestly, I was a bit taken aback at how many external dependencies this library has for something that's often used for simple communication with the AWS API. Perhaps separating out the dependencies to the subspecs that utilize them might help -- and would have the side benefit of allowing users to cut down on the number of pods they're bringing in depending on the parts they're using. |
This should be fairly trivial to fix. Any timeframe? |
@jakefleksy I'm sure they'd be happy to accept a PR if it's trivial. :) I have a feeling it might not be though. All of the following dependencies will also need to build properly as frameworks via CocoaPods. I'd bet at least a couple of these don't currently. Bolts |
We've released the AWS Mobile SDK for iOS 2.1.0 with |
Thank you for you correspondence! |
Just tried the 2.1.0 of both AWSiOSSDKv2 and AWSCognitoSync with Cocoapods 0.36.0, and I unfortunately still had header file not found errors. |
Can you share the error message and |
I am now getting errors in my bridging header file, such as import "S3.h" is not found. My podfile looks like this target 'myproject' do target 'projectTests' do end |
forgot to include use_frameworks! in the podfile |
Hmm, I changed my bridging header to look like this #import <AWSS3/AWSS3.h> and that resolved many issues, except now it can't find AWSS3TransferManager |
#import <AWSS3/AWSS3.h> |
I can confirm that, without touching any other code, If i remove use_frameworks! I can find AWSS3TransferManager again |
I've setup a test Xcode project that's just a single page application with no implemented features. All I did was get was get the SDK installed. I have two branches—without-use-frameworks and with-use-frameworks. The project builds fine on the first branch, and does not build on the second. The error is:
Here is the repo I was referencing: https://github.com/adamnbowen/TestAWS Edit: here's the diff between those two branches: https://github.com/adamnbowen/TestAWS/compare/with-use-frameworks |
@gutenyore |
@adamnbowen Also, If you got "Use of unresolved identifier 'xxxxxxx' " error, try to put "import AWSXXX" on top of the .swift file which uses that identifier. |
Assume the issue has been resolved. Please feel free to update the thread if you continue encountering the issue. Thanks. |
This is still a problem for me Podfile
AWSS3TransferManager.h AWSS3Model.h |
I am also seeing this issue with AWSCore 2.3.5 and AWSS3 2.3.5. |
You should use service specific pods (e.g. |
We are only including |
Then it's a different issue than the one mentioned above. You should describe your setups in details so that we can try reproducing the issue. |
I get the Use of unresolved identifier 'AWSS3TransferManager' errors as soon as I add cocoapods to my app, even before I use it to install the AWS through the podfile. --- meaning, the app works great with AWS frameworks installed manually, create a podfile with the Use_Frameworks option, don't included ANY pods, run pod install, launch xcode workspace and those errors occur without making any other changes. |
Using a Podfile like so:
AWSiOSSDKv2 pod build does not complete successfully when use the "use_frameworks!" options.
The following problem is I have noticed is that is the same: #145, #146
Do you have a plan that corresponds to "use_frameworks!" and CocoaPods v0.36.0 rc1?
The text was updated successfully, but these errors were encountered: