草庐IT

architectural-patterns

全部标签

android - 尝试在 iOS 应用程序上安装 "clean architecture"

最近我一直在反射(reflection)我的androidarchitectureproject,试图让它适应更“干净的架构”,特别是那种设计suggestedby“UncleBob”.它涉及多个抽象层,很好的职责隔离和通过依赖注入(inject)实现的非常强的依赖倒置;这最终导致了一个非常解耦的可移植系统。通过单元测试和集成测试进行测试的完美候选者。在我的android实现中,我最终拥有三个不同的模块或层:-域:实体、交互者、演示者(纯java模块)-数据:(充当向域提供数据的存储库)(android库模块)-演示文稿:ui相关的东西、fragment、Activity、View等(

objective-c - Undefined symbol for architecture i386 由 CACurrentMediaTime() 引起的编译错误

我正在制作一个显示计时器的iOS应用程序。我不认为我可以在用户按下主页按钮后让计时器继续运行,所以我想记录用户退出应用程序的时间,并在他们重新进入应用程序时使用时间来更新计时器。这是我试过的代码:-(void)applicationWillResignActive:(UIApplication*)application{doublecurrentTime=CACurrentMediaTime();NSLog(@"%g",currentTime);/*Sentwhentheapplicationisabouttomovefromactivetoinactivestate.Thiscano

objective-c - Undefined symbol for architecture i386 由 CACurrentMediaTime() 引起的编译错误

我正在制作一个显示计时器的iOS应用程序。我不认为我可以在用户按下主页按钮后让计时器继续运行,所以我想记录用户退出应用程序的时间,并在他们重新进入应用程序时使用时间来更新计时器。这是我试过的代码:-(void)applicationWillResignActive:(UIApplication*)application{doublecurrentTime=CACurrentMediaTime();NSLog(@"%g",currentTime);/*Sentwhentheapplicationisabouttomovefromactivetoinactivestate.Thiscano

iphone - Xcode 错误 - 警告 : all apps should include an armv7 architecture (current ARCHS = "")

我在构建应用程序时不断遇到以下错误。错误是:检查依赖没有可编译的体系结构(ARCHS=armv7,VALID_ARCHS=arm6arm7)。警告:所有应用都应包含armv7架构(当前ARCHS="")。我该如何解决这个问题?我正在使用Xcode4.3.1。 最佳答案 在您的TARGET的build设置中,查看“仅构建事件架构”,将调试设置为“否”并将发布设置为“否” 关于iphone-Xcode错误-警告:allappsshouldincludeanarmv7architecture(

iphone - Xcode 错误 - 警告 : all apps should include an armv7 architecture (current ARCHS = "")

我在构建应用程序时不断遇到以下错误。错误是:检查依赖没有可编译的体系结构(ARCHS=armv7,VALID_ARCHS=arm6arm7)。警告:所有应用都应包含armv7架构(当前ARCHS="")。我该如何解决这个问题?我正在使用Xcode4.3.1。 最佳答案 在您的TARGET的build设置中,查看“仅构建事件架构”,将调试设置为“否”并将发布设置为“否” 关于iphone-Xcode错误-警告:allappsshouldincludeanarmv7architecture(

ios - 谷歌地图SDK : Undefined symbols for architecture x86_64

我正在尝试安装GooglemapSDK,但在运行时出现此错误:Undefinedsymbolsforarchitecturex86_64:"_CBAdvertisementDataManufacturerDataKey",referencedfrom:-[GMSx_PEBeaconScannercentralManager:didDiscoverPeripheral:advertisementData:RSSI:]inGoogleMaps(PEBeaconScanner.o)"_CBAdvertisementDataServiceDataKey",referencedfrom:-[GM

ios - 谷歌地图SDK : Undefined symbols for architecture x86_64

我正在尝试安装GooglemapSDK,但在运行时出现此错误:Undefinedsymbolsforarchitecturex86_64:"_CBAdvertisementDataManufacturerDataKey",referencedfrom:-[GMSx_PEBeaconScannercentralManager:didDiscoverPeripheral:advertisementData:RSSI:]inGoogleMaps(PEBeaconScanner.o)"_CBAdvertisementDataServiceDataKey",referencedfrom:-[GM

ios - Xcode 5.1 : missing required architecture arm64

刚刚升级到Xcode5.1,出现如下错误:ignoringfile...Dependencies/SalesforceNetworkSDK/libSalesforceNetworkSDK.a,missingrequiredarchitecturearm64infile...Dependencies/SalesforceNetworkSDK/libSalesforceNetworkSDK.a(3slices)如果我关闭仅构建事件拱门并从有效拱门中删除arm64,我会得到:Build/Products/Debug-iphoneos/libPods.a,filewasbuiltforarch

ios - Xcode 5.1 : missing required architecture arm64

刚刚升级到Xcode5.1,出现如下错误:ignoringfile...Dependencies/SalesforceNetworkSDK/libSalesforceNetworkSDK.a,missingrequiredarchitecturearm64infile...Dependencies/SalesforceNetworkSDK/libSalesforceNetworkSDK.a(3slices)如果我关闭仅构建事件拱门并从有效拱门中删除arm64,我会得到:Build/Products/Debug-iphoneos/libPods.a,filewasbuiltforarch

ios - 错误 : "File was built for archive which is not the architecture being linked (armv7s)"

我已经构建了我自己的静态C++库,它是使用以下设置构建的:架构:armv7、armv7s仅构建事件架构:否支持平台:iOS有效架构:armv7、armv7s库项目构建良好,我得到了.a文件(我已经清理了构建文件夹并再次构建项目以确保我的设置有效)。我已将库(.a文件)添加到我的iOS项目,但即使我在iOS项目上设置了完全相同的设置,项目也不会构建:架构:armv7s、armv7仅构建事件架构:是支持平台:iOS有效架构:armv7、armv7s我一直收到这个错误:ld:warning:ignoringfile/Users/hidden/Library/Developer/Xcode/D