wujunyang / jiamoduledemo Goto Github PK
View Code? Open in Web Editor NEW一个针对iOS模块化开发的解决方案(不断完善优化中)
License: Apache License 2.0
一个针对iOS模块化开发的解决方案(不断完善优化中)
License: Apache License 2.0
作者能否抽个空看下,项目运行不了
本人刚刚研究组件化,看到作者的文章,使我学到很多,首先非常感谢,但有几个问题想请教一下作者。首先关于BaseModule模块,在实际开发中,这个模块是作为一个私有的repo,作为基础组件提供给各个模块来使用,但是BaseModul中存在大量的Category,给其他模块使用的时候,用到什么Category再引用是不是很麻烦。还有就算每个模块在开发中应该分为两个repo的吧?一个是Actions模块,一个是Mediator +Category? 我看到作者是将这两块放在一起,不太理解,希望作者可以抽空给我解答下,谢谢!
你好,可以给个联系方式吗?有点问题想问一下
首先,pod完后运行,AFImageDownloader.h 文件找不到,发现是因为目前pod install 会更新AFN3.1.0版本,这个版本应该是没有AFImageDownloader这个类了。所有我把pod 'AFNetworking', '~>3.0' 改成了'AFNetworking', '3.0'指定更新3.0版本。不再提示找不到AFImageDownloader.h文件了。但是又出现了新的问题,RealReachability库里的 PingFoundation.h 类中
check_compile_time(sizeof(ICMPHeader) == 8);
check_compile_time(offsetof(ICMPHeader, type) == 0);
check_compile_time(offsetof(ICMPHeader, code) == 1);
check_compile_time(offsetof(ICMPHeader, checksum) == 2);
check_compile_time(offsetof(ICMPHeader, identifier) == 4);
check_compile_time(offsetof(ICMPHeader, sequenceNumber) == 6);
这几个调用 提示 提示 Expected parameter declarator, 问题指向这里offsetof
AF其实也有这功能,没必要再使用一个第三方
Undefined symbols for architecture x86_64:
"OBJC_CLASS$_GeTuiSdk", referenced from:
objc-class-ref in XAspect-GeTuiAppDelegate.o
clang: error: no such file or directory: '/Users/admin/Desktop/jiaModuleDemo-master/Pods/Target Support Files/CocoaLumberjack/CocoaLumberjack-dummy.m'
clang: error: no input files
#import "XAAppDelegate.h"
#import "XAspect.h"
#define AtAspect AnalyticsAppDelegate
#define AtAspectOfClass XAAppDelegate
@classpatchfield(XAAppDelegate)
AspectPatch(-, BOOL, application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions)
{
NSLog(@"成功加载友盟统计");
return XAMessageForward(application:application didFinishLaunchingWithOptions:launchOptions);
}
@EnD
#undef AtAspectOfClass
#undef AtAspect
在自己的项目中,加入如上代码,debug中,没有进入AspectPatch的代码块中,"成功加载友盟统计"日志未打印
/Users/xxx/Downloads/jiaModuleDemo-master/Pods/AFNetworking/UIKit+AFNetworking/UIButton+AFNetworking.m:29:9: 'AFImageDownloader.h' file not found
是不是文件夹没有在工程文件夹里新建,直接建的虚拟文件夹
导入后,afn还是2.6版本的,不是3.0的呢?
clang: error: no such file or directory: '/Users/lish/Desktop/Git/jiaModuleDemo/Pods/Target Support Files/CocoaLumberjack/CocoaLumberjack-dummy.m'
clang: error: no input files
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.