pmusolino / Wormholy

iOS network debugging, like a wizard 🧙‍♂️
MIT License
2.32k stars 184 forks source link

Support Swfit Static Library #21

Closed turygo closed 5 years ago

turygo commented 5 years ago

When use cocoapods swift static library(http://blog.cocoapods.org/CocoaPods-1.5.0/) ,there has no more <Wormholy/Wormholy-Swift.h>. use __has_include to detect if we can import Wormholy by dynamic framework header, or just import it by classical static header.

pmusolino commented 5 years ago

Thanks for this PR @turygo !

Do you try if it continues to works properly with cocoapods if you try to set your fork?

Thanks -Paolo

turygo commented 5 years ago

yes,I already tried it in my forked repo.Both use_framework! enabled and disabled in Podfile. All works fine.

Paolo Musolino notifications@github.com 于2018年8月3日周五 下午6:16写道:

Thanks for this PR @turygo https://github.com/turygo !

Do you try if it continues to works properly with cocoapods if you try to set your fork?

Thanks -Paolo

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/pmusolino/Wormholy/pull/21#issuecomment-410210748, or mute the thread https://github.com/notifications/unsubscribe-auth/AAsUvpSKFmU1-39wnYJ75omPSZ8_kHaiks5uNCLmgaJpZM4VjN-_ .

pmusolino commented 5 years ago

Thanks @turygo!