Comments (25)
- pod versionを最新にする
- ライブラリ名と同じレポジトリを作る
- 作ったレポジトリのディレクトリで
pod lib create MyLibraryName
コマンドを叩く - Pod/Classesにライブラリ(今回のCustomtextView的な)クラス作成
- Exampleの中にexample プロジェクト(今回のViewController)
一旦ここまで出来て、あとは微調整かな。
3~5は不安だったら学校で
from customtextview.
明日学校来ます?
from customtextview.
明日バイト。
そしたらREADME.mdを先に作っててもいいかも。
全部英語でライブラリの説明を書かないといけないから
from customtextview.
pod入ってないっぽいです。
from customtextview.
じゃあインストールして。
ターミナルでやってね。
from customtextview.
ここミスったらやばいとことかありますか?
from customtextview.
podは他のツールとかと依存してないはずだから調べれば多分いける
from customtextview.
gem install cocoapods
gem入ってる?
from customtextview.
入ってる
from customtextview.
頑張れ
from customtextview.
yeah
from customtextview.
$ pod lib create SimpleCustomizableTextView
Cloning `https://github.com/CocoaPods/pod-template.git` into `SimpleCustomizableTextView`.
[!] /usr/local/bin/git clone https://github.com/CocoaPods/pod-template.git SimpleCustomizableTextView
fatal: destination path 'SimpleCustomizableTextView' already exists and is not an empty directory.
すでにある名前では作成できないってことですか?
from customtextview.
なんかやり方間違ってるみたいなんで、とりあえずここまでやったことをまとめます。
gemはインストールされていたので、podのインストールを行った。
podのversionを更新 (1.1.1)
指示「2. ライブラリ名と同じレポジトリを作る」に従って、SimpleCustomizableTextView
でプロジェクトを作った。
指示「3. 作ったレポジトリのディレクトリでpod lib create MyLibraryName
コマンドを叩く」を行うと、
[!] /usr/local/bin/git clone https://github.com/CocoaPods/pod-template.git SimpleCustomizableTextView
fatal: destination path 'SimpleCustomizableTextView' already exists and is not an empty directory.
っていうエラーが出たので?だった。
必要ではないと思ったが、リモートリポジトリを作ってpushしてから再度コマンドを叩いた。
やはり同じエラーが出た。既存のライブラリ名を使って作成することができないのだと思い、CustomizableTextView
でプロジェクトを作り、同様の操作を行った。
ただここで間違えてpod lib create SimpleCustomizableTextView
したら、なぜか通った。
とりあえず進めてみるか… 質問を以下のように答えた。
What language do you want to use?? [ Swift / ObjC ]
> Swift
Would you like to include a demo application with your library? [ Yes / No ]
> Yes
Which testing frameworks will you use? [ Quick / None ]
> Quick
Would you like to do view based testing? [ Yes / No ]
> No
Running pod install on your new library.
3つ目と4つ目はよくわからなかった。
Xcodeでプロジェクトが立ち上がり、Swift3にconvertした。
エラーがめちゃくちゃ出た。もうわけわからないのでXcodeを閉じた。
どうやら、CustomizableTextViewフォルダの中に新しく、SimpleCustomizableTextViewフォルダができている。だから、ターミナルでSimpleCustomizableTextViewの上でpod lib createをやろうとすると同じ名前のフォルダがあるから上手くいかないことを理解した。その中にいろいろ入っている感じ。
_Pods.xcodeproj
とSimpleCustomizableTextView.xcodeproj
を開いてみたがエラーはなかった。
from customtextview.
from customtextview.
名前は変えた方がいいかもしれない。
リリースする前にバリデーションかけるんだけどその時にコケると思う。
エラー内容だけどtest frameworkのポイな。恐らくQuickの
今回UI系だからテストはやらなくていい
3, 4のはNoneにして
CustomizableTextViewでプロジェクト作ってるけど、それはやらなくていい
from customtextview.
pod lib create MyLibraryName
をどこでやればいいのかがわからないです。
from customtextview.
remoteディレクトリ配下
from customtextview.
別の話なんですけど、ライブラリをプロジェクトに組み込むこともやってみようと思って、Koyomiで試したんですけどいまいちうまくいかないです。
from customtextview.
ちゃんとxcworkspaceの方でやってる?
from customtextview.
はい
from customtextview.
remoteディレクトリ配下
をターミナルで開く方法がわかりません。
自分なりの解釈でやった結果、
1.リモートリポジトリSimpleCustomizableTextView
を作成
2.ローカルに空のフォルダSimpleCustomizableTextView
を作成
3.1を2にクローン
4.ローカルのパスSimpleCustomizableTextView
でpod lib create SimpleCustomizableTextView
SimpleCustomizableTextView
フォルダの中にSimpleCustomizableTextView
ができちゃうんで違うんですよね…
from customtextview.
あした
from customtextview.
from customtextview.
from customtextview.
from customtextview.
Related Issues (15)
- 課題 HOT 3
- TextViewのテキストサイズに伴って、Placeholderラベルの表示位置を変動させる
- キーボードを閉じる機能をデフォルトで実装する
- placeholderno設定 HOT 3
- NotificationCenter.defaultの取得
- textContainerInset変更時の処理 HOT 2
- placeholderLabel.frame.size.width HOT 2
- inspectable properties HOT 11
- Customize propaties HOT 8
- ライブラリ名 HOT 4
- アクセス修飾子
- storyboardでの生成時のplaceholderの初期化
- textContainerInset変更時のplaceholderのレイアウト
- ライブラリの説明 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from customtextview.