Skip to content
This repository has been archived by the owner on Apr 17, 2019. It is now read-only.

Pod lib lint fails #2

Closed
Danappelxx opened this issue Sep 18, 2015 · 4 comments
Closed

Pod lib lint fails #2

Danappelxx opened this issue Sep 18, 2015 · 4 comments

Comments

@Danappelxx
Copy link
Owner

Not sure how to fix this, unfortunately. Headers are included in the necessary (I think) search paths.

Help would be appreciated! Can't push to 0.2.0 without this unfortunately.

$ pod lib lint

 -> SwiftMongoDB (0.2.0)
    - ERROR | xcodebuild: Returned an unsuccessful exit code. You can use `--verbose` for more information.
    - NOTE  | xcodebuild:  warning: no rule to process file '/Users/dan/Developer/projects/SwiftMongoDB/swiftMongoDB/dependencies/libbson.dylib' of type compiled.mach-o.dylib for architecture x86_64
    - NOTE  | xcodebuild:  warning: no rule to process file '/Users/dan/Developer/projects/SwiftMongoDB/swiftMongoDB/dependencies/libmongoc.dylib' of type compiled.mach-o.dylib for architecture x86_64
    - NOTE  | xcodebuild:  <module-includes>:1:9: note: in file included from <module-includes>:1:
    - NOTE  | xcodebuild:  /privateTarget Support Files/SwiftMongoDB/SwiftMongoDB-umbrella.h:50:9: note: in file included from /privateTarget Support Files/SwiftMongoDB/SwiftMongoDB-umbrella.h:50:
    - ERROR | xcodebuild:  /Users/dan/Developer/projects/SwiftMongoDB/swiftMongoDB/dependencies/mongoc/mongoc-server-description.h:22:10: error: 'mongoc-array-private.h' file not found
    - NOTE  | xcodebuild:  <unknown>:0: error: could not build Objective-C module 'SwiftMongoDB'
    - NOTE  | xcodebuild:  warning: no rule to process file '/Users/dan/Developer/projects/SwiftMongoDB/swiftMongoDB/dependencies/libbson.dylib' of type compiled.mach-o.dylib for architecture i386
    - NOTE  | xcodebuild:  warning: no rule to process file '/Users/dan/Developer/projects/SwiftMongoDB/swiftMongoDB/dependencies/libmongoc.dylib' of type compiled.mach-o.dylib for architecture i386

[!] SwiftMongoDB did not pass validation, due to 2 errors.
You can use the `--no-clean` option to inspect any issue.
@paulmelnikow
Copy link

Is it perhaps the space in 'swiftMongoDB/dependencies/{mongoc,bson, private}/*.{h}' in the podspec that's causing the problem?

@Danappelxx
Copy link
Owner Author

Wow @paulmelnikow, great eye! You're absolutely right - that was an issue. Unfortunately, now I'm getting another error: Only <mongoc.h> can be included directly.

Full log:

 -> SwiftMongoDB (0.2.0)
    - ERROR | Returned an unsuccessful exit code. You can use `--verbose` for more information.
    - NOTE  |  warning: no rule to process file '/Users/dan/Developer/projects/SwiftMongoDB/swiftMongoDB/dependencies/libbson.dylib' of type compiled.mach-o.dylib for architecture x86_64
    - NOTE  |  warning: no rule to process file '/Users/dan/Developer/projects/SwiftMongoDB/swiftMongoDB/dependencies/libmongoc.dylib' of type compiled.mach-o.dylib for architecture x86_64
    - NOTE  |  <module-includes>:1:9: note: in file included from <module-includes>:1:
    - NOTE  |  /privateTarget Support Files/SwiftMongoDB/SwiftMongoDB-umbrella.h:50:9: note: in file included from /privateTarget Support Files/SwiftMongoDB/SwiftMongoDB-umbrella.h:50:
    - NOTE  |  /Users/dan/Developer/projects/SwiftMongoDB/swiftMongoDB/dependencies/mongoc/mongoc-server-description.h:22:10: note: in file included from /Users/dan/Developer/projects/SwiftMongoDB/swiftMongoDB/dependencies/mongoc/mongoc-server-description.h:22:
    - ERROR |  /Users/dan/Developer/projects/SwiftMongoDB/swiftMongoDB/dependencies/private/mongoc-array-private.h:21:2: error: "Only <mongoc.h> can be included directly."
    - NOTE  |  /privateTarget Support Files/SwiftMongoDB/SwiftMongoDB-umbrella.h:59:9: note: in file included from /privateTarget Support Files/SwiftMongoDB/SwiftMongoDB-umbrella.h:59:
    - NOTE  |  /Users/dan/Developer/projects/SwiftMongoDB/swiftMongoDB/dependencies/mongoc/mongoc-trace.h:26:10: note: in file included from /Users/dan/Developer/projects/SwiftMongoDB/swiftMongoDB/dependencies/mongoc/mongoc-trace.h:26:
    - ERROR |  /Users/dan/Developer/projects/SwiftMongoDB/swiftMongoDB/dependencies/private/mongoc-log-private.h:21:3: error: "Only <mongoc.h> can be included directly."
    - NOTE  |  /privateTarget Support Files/SwiftMongoDB/SwiftMongoDB-umbrella.h:65:9: note: in file included from /privateTarget Support Files/SwiftMongoDB/SwiftMongoDB-umbrella.h:65:
    - ERROR |  /Users/dan/Developer/projects/SwiftMongoDB/swiftMongoDB/dependencies/private/mongoc-async-cmd-private.h:21:2: error: "Only <mongoc.h> can be included directly."
    - NOTE  |  /Users/dan/Developer/projects/SwiftMongoDB/swiftMongoDB/dependencies/private/mongoc-async-cmd-private.h:27:10: note: in file included from /Users/dan/Developer/projects/SwiftMongoDB/swiftMongoDB/dependencies/private/mongoc-async-cmd-private.h:27:
    - ERROR |  /Users/dan/Developer/projects/SwiftMongoDB/swiftMongoDB/dependencies/private/mongoc-async-private.h:21:2: error: "Only <mongoc.h> can be included directly."
    - NOTE  |  /Users/dan/Developer/projects/SwiftMongoDB/swiftMongoDB/dependencies/private/mongoc-async-cmd-private.h:29:10: note: in file included from /Users/dan/Developer/projects/SwiftMongoDB/swiftMongoDB/dependencies/private/mongoc-async-cmd-private.h:29:
    - ERROR |  /Users/dan/Developer/projects/SwiftMongoDB/swiftMongoDB/dependencies/private/mongoc-buffer-private.h:21:2: error: "Only <mongoc.h> can be included directly."
    - NOTE  |  /Users/dan/Developer/projects/SwiftMongoDB/swiftMongoDB/dependencies/private/mongoc-async-cmd-private.h:30:10: note: in file included from /Users/dan/Developer/projects/SwiftMongoDB/swiftMongoDB/dependencies/private/mongoc-async-cmd-private.h:30:
    - ERROR |  /Users/dan/Developer/projects/SwiftMongoDB/swiftMongoDB/dependencies/private/mongoc-rpc-private.h:21:2: error: "Only <mongoc.h> can be included directly."
    - ERROR |  /Users/dan/Developer/projects/SwiftMongoDB/swiftMongoDB/dependencies/private/mongoc-rpc-private.h:48:10: error: 'op-delete.def' file not found
    - NOTE  |  <unknown>:0: error: could not build Objective-C module 'SwiftMongoDB'
    - NOTE  |  warning: no rule to process file '/Users/dan/Developer/projects/SwiftMongoDB/swiftMongoDB/dependencies/libbson.dylib' of type compiled.mach-o.dylib for architecture i386
    - NOTE  |  warning: no rule to process file '/Users/dan/Developer/projects/SwiftMongoDB/swiftMongoDB/dependencies/libmongoc.dylib' of type compiled.mach-o.dylib for architecture i386

I'm looking into it right now.

@Danappelxx
Copy link
Owner Author

Also... as the maintainer of the mongoc and libbson pods, would you know why including them as a dependency in the podspec doesn't work? I've also found that including use_frameworks! in the podfile (which is needed for swift pods) breaks mongoc & libbson, causing them to throw a ton of errors such as use of private header outside of its module. Because of this, I went with the dylib & header route but it doesn't seem to be working too well, either.

Thanks!

@Danappelxx
Copy link
Owner Author

OK so this issue isn't resolved but building works through carthage. For that reason I will be closing this for now - if you anybody has any complaints/questions feel free to reopen 😃

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants