Skip to content
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

use_frameworks! broken with CocoaPods 0.39.0 #276

Closed
obuseme opened this issue Oct 30, 2015 · 3 comments
Closed

use_frameworks! broken with CocoaPods 0.39.0 #276

obuseme opened this issue Oct 30, 2015 · 3 comments
Assignees
Labels

Comments

@obuseme
Copy link

obuseme commented Oct 30, 2015

I'm still having problems with using use_frameworks! in conjunction with OnePasswordExtension 1.6.3 installed via CocoaPods 0.39.0.

I can reliably reproduce this by:
Create new Swift project
Add Objective-C file, and create bridging header
Add podfile with simply use_frameworks! and pod '1PasswordExtension', '~> 1.6.3'
pod install
Open workspace
Any reference to OnePasswordExtension from Swift results with a "Use of unresolved identifier OnePasswordExtension" error

If I simply go to the pod file and remove use_frameworks! and pod install again, change the bridging header import to #import "OnePasswordExtension.h" the project will build fine.

I saw that #268 which was included with 1.6.3 was related to this.

@tapi
Copy link
Contributor

tapi commented Oct 30, 2015

2 questions.

  • What version of Xcode?
  • Does @import OnePasswordExtension; work when frameworks are enabled?

Xcode 7.1 uses a new version of clang which is way more strict about how things are imported. May be related to CocoaPods/CocoaPods#4420 (comment)

@obuseme
Copy link
Author

obuseme commented Oct 30, 2015

Xcode 7.1 (7B91b)

Yes, that fixes it! Should documentation be updated? Would be nice to get some docs specific to using the Cocoapod.

@radazzouz radazzouz self-assigned this Nov 2, 2015
@radazzouz
Copy link
Contributor

@tapi thanks for the assist buddy!

@obuseme, I am really glad that you guys sorted it all out.

In our README we recommend installing the latest version of 1Password and of Xcode. May be CocoaPods ought to specify that version 0.39.0 requires Xcode 7.1 or later...

Anyway, since this is not an App Extension API-specific issue, I am closing this issue as invalid.

Cheers!

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants