Comments (7)
Hi @kolpanic. I know this has been an issue since I pushed a bunch of commits late last week, and I'm sorry I haven't been able to resolve it yet. This change was made to support interoperability between Objective-C and Swift when using CocoaPods and the use_frameworks
option.
I'll see what I can do to resolve this in a manner that allows both use cases.
from bdboauth1manager.
@bdbergeron Thanks
from bdboauth1manager.
@kolpanic Try changing the #import <AFNetworking/x>
statements to @import AFNetworking.x
. If that works for you, it seems to be the way to go, and I'll update the library.
from bdboauth1manager.
@bdbergeron Thanks, but that didn't work. I get Module 'AFNetworking' not found
build errors.
As I mentioned, we build AFNetworking into a framework, but it's not called AFNetworking. The framework includes BDBOAuth1Manager, along with the rest of our shared code.
from bdboauth1manager.
@bdbergeron I don't use CocoaPods, but I assume the use_frameworks
option builds each pod into its own framework with the same name. However, you can't guarantee that with source-only projects like AFNetworking (and BDBOuth1Manager)βthey can be built into anything, and the module name can never be assumed.
Is there a C preprocessor directive that can conditionally check if it's being built with use_frameworks
? For example, something like this:
#if COCOAPODS_USE_FRAMEWORKS
#import <AFNetworking/AFHTTPRequestOperationManager.h>
#else
#import "AFHTTPRequestOperationManager.h"
#endif
from bdboauth1manager.
@bdbergeron Any progress on this?
from bdboauth1manager.
@bdbergeron I forked and changed the #import
s so they work for us. However, if you come up with a more general fix, I'll revert to using this canonical fork.
from bdboauth1manager.
Related Issues (20)
- Signature only HOT 8
- Prefix categories with bdb_ to help prevent possible conflicts HOT 1
- Subtle bug in fetchRequestToken HOT 6
- Always get could not acquire OAuth request token HOT 1
- How to get user's info in twitter? HOT 1
- Documentation HOT 1
- Yelp provides token HOT 1
- Workspace files for working on the project HOT 2
- How can i use this with 2 legged oauth authentication? HOT 2
- Cocoapods and use_frameworks! HOT 5
- AFNetworking 2.6 breaks Twitter Oauth HOT 6
- Unauthorized when upload file HOT 3
- Podspec update? HOT 3
- Provide hook to use AFJSONRequestSerializer HOT 1
- Once i close the app,access token to remain saved HOT 1
- Include of non-modular header inside framework module HOT 1
- Carthage and shared frameworks! HOT 2
- Where is BDBOAuth1RequestOperationManager? HOT 1
- Swift Package Manager support
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bdboauth1manager.