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

Fixing the linker issue when using Carthage to build Chatto 3.0 library with Xcode 8 #232

Merged
merged 2 commits into from
Oct 4, 2016

Conversation

zwang
Copy link
Contributor

@zwang zwang commented Oct 4, 2016

@diegosanchezr firstly thanks a lot for the quick update to swift3. I updated to v3.0. Seems works well so far. Great work from you as always 👍

Just found this issue preventing me to build successfully if I have a sub classes of BaseMessageCollectionView.

A similar discussing is found here and hint me the fix: xmartlabs/XLPagerTabStrip#227

I don't know the real reason about the fix. Guess might be some issue with Xcode. But the code change below did fix the issue luckily. Tested at my local.

Error messages shown as below for this error:

Undefined symbols for architecture arm64:

"direct field offset for
ChattoAdditions.BaseMessageCollectionViewCell.(failedButton.storage in
_199F15D9372F4972CA55EC8780E2E384) : __ObjC.UIButton?", referenced from:
ChattoAdditions.BaseMessageCollectionViewCell.failedButton.setter
: __ObjC.UIButton in PTextMessageCollectionViewCell.o

ChattoAdditions.BaseMessageCollectionViewCell.(failedButton.materializeF
orSet : __ObjC.UIButton).(closure #1) in
PTextMessageCollectionViewCell.o
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see
invocation)

Thanks again for the great work! 👍 😄

zwang added 2 commits October 3, 2016 14:56
Undefined symbols for architecture arm64:
  "direct field offset for
ChattoAdditions.BaseMessageCollectionViewCell.(failedButton.storage in
_199F15D9372F4972CA55EC8780E2E384) : __ObjC.UIButton?", referenced from:
      ChattoAdditions.BaseMessageCollectionViewCell.failedButton.setter
: __ObjC.UIButton in PTextMessageCollectionViewCell.o

ChattoAdditions.BaseMessageCollectionViewCell.(failedButton.materializeF
orSet : __ObjC.UIButton).(closure #1) in
PTextMessageCollectionViewCell.o
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see
invocation)
@codecov-io
Copy link

Current coverage is 72.40% (diff: 100%)

Merging #232 into master will not change coverage

@@             master       #232   diff @@
==========================================
  Files            86         86          
  Lines          4679       4679          
  Methods           0          0          
  Messages          0          0          
  Branches          0          0          
==========================================
  Hits           3388       3388          
  Misses         1291       1291          
  Partials          0          0          

Powered by Codecov. Last update 55885a5...0316da3

@diegosanchezr diegosanchezr merged commit 5e28274 into badoo:master Oct 4, 2016
@diegosanchezr
Copy link
Contributor

Thanks @zwang!! Consider opening a bug about this in https://bugs.swift.org

@zwang
Copy link
Contributor Author

zwang commented Oct 4, 2016

OK, I will do some research and figure out an minimal app to re-produce this later. Kind of busy in these two weeks. Feel free to do by yourself too if you are curious. Thanks for the quick merge. :)

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

Successfully merging this pull request may close these issues.

Linker Error message when compiling with xCode 8 when using Carthage
3 participants