SlackTextViewController icon indicating copy to clipboard operation
SlackTextViewController copied to clipboard

Swift example project fails to build with Carthage

Open bayareahank opened this issue 7 years ago • 0 comments

  • [*] I've read and understood the Contributing guidelines and have done my best effort to follow them.
  • [* ] I've read and agree to the Code of Conduct.
  • [*] I've searched for any related issues and avoided creating a duplicate issue.

Description

After install the framework with Carthage, swift demo project fails to build

Reproducible in:

  • [*] This is reproducible in the sample project. SlackTextViewController version: Latest v1.9.6 iOS version(s): 8.0, 10.0 (only tried these two, both failed). Device(s): Simulator

Steps to reproduce:

Using Xcode 9.1, compile with swift 4.02

  1. Carthage file content is: github "slackhq/SlackTextViewController"
  2. Carthage update --platform iOS, then put the built SlackTextViewControllerframework into linked libraries and frameworks.
  3. Build the swift demo project, failed with info: /Users/me/src/ios/download/example/slackVC/Messenger-Shared/Bridge-Header.h:5:9: 'SLKTextViewController.h' file not found Failed to emit precompiled header '/Users/me/Library/Developer/Xcode/DerivedData/Messenger-dbcelvwgcibxezaxnqfieotjroxb/Build/Intermediates.noindex/PrecompiledHeaders/Bridge-Header-swift_11FAD7WS9UBFZ-clang_2YQ0G89CRVQGR.pch' for bridging header '/Users/me/src/ios/download/example/slackVC/Messenger-Shared/Bridge-Header.h'

Expected result:

e.g. What you expected to happen

Actual result:

Could observe that header files are included in the framework, under Frameworks/SlackTextViewController.framework/Headers directory, yet compiler seems unable to find it, suspecting path issue.

BTW, this is also my first time to compile the Slack sample swift project.

Attachments:

e.g. Logs, screenshots, screencast, sample project, funny gif, etc.

bayareahank avatar Nov 02 '17 05:11 bayareahank