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

Build as static library with the CocoaPods 1.5.0 #569

Closed
tdksk opened this issue Apr 6, 2018 · 4 comments
Closed

Build as static library with the CocoaPods 1.5.0 #569

tdksk opened this issue Apr 6, 2018 · 4 comments

Comments

@tdksk
Copy link

tdksk commented Apr 6, 2018

Goals

Use static libraries to reduce the launch time on a app

Expected Results

XLPagerTabStrip would build

Actual Results

Unable to run command 'StripNIB ButtonCell.nib' - this target might include its own product.
Unable to run command 'StripNIB ButtonCell.nib' - this target might include its own product.
Unable to run command 'StripNIB ButtonCell~iphone.nib' - this target might include its own product.
Unable to run command 'StripNIB ButtonCell~iphone.nib' - this target might include its own product.
Unable to run command 'StripNIB ButtonCell~ipad.nib' - this target might include its own product.
Unable to run command 'StripNIB ButtonCell~ipad.nib' - this target might include its own product.

Steps to Reproduce

  1. Create a Gemfile:
source 'https://rubygems.org'
gem 'cocoapods', '1.5.0'
  1. Change your Podfile to use
use_frameworks!(false)
pod 'XLPagerTabStrip'
  1. Run bundle install && bundle exec pod install
  2. Try to build the app

Version of XLPagerTabStrip and Tooling

XLPagerTabStrip version: 8.0.1
CocoaPods version: 1.5.0
Xcode version: 9.2
iOS version: 11.2

@andwun
Copy link

andwun commented May 2, 2018

I ran into this issue with version 8.0.1, as well.
Please note that it seems to be fixed on master.
A git bisect indicated that 4fe566f187b7e2c7c883a438bc6ab701a81ebbb3 is the commit that fixes the issue for me.

Toolchain Versions

CocoaPods version: 1.5.0
Xcode version: 9.3
iOS version: 11.3

@iafine
Copy link

iafine commented Jun 14, 2018

I also found this problem.

Toolchain Versions

CocoaPods Version: 1.5.2
Xcode Version: 9.4
iOS Version: 11.4
XLPagerTabStrip Version: 8.0.1

Podfile

# use_frameworks!
...
  pod 'XLPagerTabStrip'
...

This error will occur if you comment this code use_frameworks!

It's like to a bug!

@bestwnh
Copy link

bestwnh commented Aug 14, 2018

This issue related to #506 It's already fixed but not push to cocoapods repo yet, so for now you need to use the master branch code to solve this issue.
change your pod code like this.
pod 'XLPagerTabStrip', :git => 'https://github.com/xmartlabs/XLPagerTabStrip.git'
if you want it more stable you can set with commit code like this.
pod 'XLPagerTabStrip', :git => 'https://github.com/xmartlabs/XLPagerTabStrip.git', :commit => '1619ad4'

@tdksk
Copy link
Author

tdksk commented Oct 30, 2018

This issue has fixed after the version 8.1.0. Thanks!

@tdksk tdksk closed this as completed Oct 30, 2018
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

No branches or pull requests

4 participants