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

pod完成,编译报错了,请协助解决 #18

Closed
dengchaojie opened this issue Aug 27, 2019 · 8 comments
Closed

pod完成,编译报错了,请协助解决 #18

dengchaojie opened this issue Aug 27, 2019 · 8 comments

Comments

@dengchaojie
Copy link

dengchaojie commented Aug 27, 2019

请参阅ZIKRouter初学者入门实践Demo

在swift工程,pod 'ZRouter/ServiceRouter', '>= 1.1.0'完成,编译报错。
image

@Zuikyo
Copy link
Owner

Zuikyo commented Aug 27, 2019

1.1.0 的 ServiceRouter 用到了 ViewRouter 里的函数,忘了加上编译宏了。
可以先使用 pod 'ZRouter', '>= 1.1.0',或者 pod 'ZRouter/ServiceRouter', '1.0.9'
我之后修复一下这个问题。

@dengchaojie
Copy link
Author

都试过了,不行的,还是同样的错误。

@Zuikyo
Copy link
Owner

Zuikyo commented Aug 27, 2019

这两个我都试过了,编译正常。说明你的 pod 没有成功,或者 clean 一下试试。

@dengchaojie
Copy link
Author

dengchaojie commented Aug 27, 2019

target 'delete' do
use_frameworks!
pod 'ZRouter/ServiceRouter', '1.0.9'
end
image
下载的ZIKRouter还是1.1.0。编译还是报错。

@Zuikyo
Copy link
Owner

Zuikyo commented Aug 27, 2019

看看 pod 后的代码里有没有 ZIKViewRouter。
没有的话试试这个:
pod 'ZIKRouter/ViewRouter', '>= 1.1.0'
pod 'ZRouter/ViewRouter', '>= 1.1.0'

@dengchaojie
Copy link
Author

pod 'ZIKRouter/ViewRouter', '>= 1.1.0'
pod 'ZRouter', '>= 1.1.0'
pod 'ZRouter/ViewRouter', '>= 1.1.0'
文件下都有ViewRouter,还是不行的。

@Zuikyo
Copy link
Owner

Zuikyo commented Aug 27, 2019

那就应该没问题,如果还是同一个编译错误,就 clean 试试。可以用一个空工程测试一下。

@dengchaojie
Copy link
Author

pod 'ZIKRouter', '1.0.12'
pod 'ZRouter', '1.0.12'
这样写可以。原因可能用ZIKRouter的1.1.0版本有问题。

@Zuikyo Zuikyo closed this as completed Oct 11, 2019
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

2 participants