更新了我的第三方SDK(Facebook Audience Network其他人)之后,我在构建时遇到了大量这类警告.
GenerateDSYMFile /Users/stakhar/Library/Developer/Xcode/DerivedData/Weather_-haqumjcbppvcpwareowgymfxekqg/Build/Products/Debug-iphoneos/Weather\ .app.dSYM /Users/stakhar/Library/Developer/Xcode/DerivedData/Weather_-haqumjcbppvcpwareowgymfxekqg/Build/Products/Debug-iphoneos/Weather\ .app/Weather\ 
            cd /Users/stakhar/DropBox/WeatherApps/development/iOS/WeatherApps
            export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
            /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/dsymutil /Users/stakhar/Library/Developer/Xcode/DerivedData/Weather_-haqumjcbppvcpwareowgymfxekqg/Build/Products/Debug-iphoneos/Weather\ .app/Weather\  -o /Users/stakhar/Library/Developer/Xcode/DerivedData/Weather_-haqumjcbppvcpwareowgymfxekqg/Build/Products/Debug-iphoneos/Weather\ .app.dSYM

        while processing /Users/stakhar/DropBox/WeatherApps/development/iOS/WeatherApps/Pods/FBAudienceNetwork/FBAudienceNetwork.framework/FBAudienceNetwork(FBAdCache.o):
        warning: /var/folders/9j/vw2bf7xn53g9ms_nnp0sct9167gh9d/C/org.llvm.clang.chrisp/ModuleCache/1G1JKM0ZTO8SX/Foundation-A3SOD99KJ0S9.pcm: No such file or directory
        while processing /Users/stakhar/DropBox/WeatherApps/development/iOS/WeatherApps/Pods/FBAudienceNetwork/FBAudienceNetwork.framework/FBAudienceNetwork(FBAdCache.o):
        warning: /var/folders/9j/vw2bf7xn53g9ms_nnp0sct9167gh9d/C/org.llvm.clang.chrisp/ModuleCache/1G1JKM0ZTO8SX/Foundation-A3SOD99KJ0S9.pcm: No object file for requested architecture
        while processing /Users/stakhar/DropBox/WeatherApps/development/iOS/WeatherApps/Pods/FBAudienceNetwork/FBAudienceNetwork.framework/FBAudienceNetwork(FBAdCache.o):
        warning: /var/folders/9j/vw2bf7xn53g9ms_nnp0sct9167gh9d/C/org.llvm.clang.chrisp/ModuleCache/1G1JKM0ZTO8SX/UIKit-2LM3EQU7VVY4O.pcm: No such file or directory
        while processing /Users/stakhar/DropBox/WeatherApps/development/iOS/WeatherApps/Pods/FBAudienceNetwork/FBAudienceNetwork.framework/FBAudienceNetwork(FBAdCache.o):
        warning: /var/folders/9j/vw2bf7xn53g9ms_nnp0sct9167gh9d/C/org.llvm.clang.chrisp/ModuleCache/1G1JKM0ZTO8SX/UIKit-2LM3EQU7VVY4O.pcm: No object file for requested architecture
        while processing /Users/stakhar/DropBox/WeatherApps/development/iOS/WeatherApps/Pods/FBAudienceNetwork/FBAudienceNetwork.framework/FBAudienceNetwork(FBAdCache.o):
        warning: /var/folders/9j/vw2bf7xn53g9ms_nnp0sct9167gh9d/C/org.llvm.clang.chrisp/ModuleCache/1G1JKM0ZTO8SX/Darwin-MI6WZSG1PNOM.pcm: No such file or directory
        while processing /Users/stakhar/DropBox/WeatherApps/development/iOS/WeatherApps/Pods/FBAudienceNetwork/FBAudienceNetwork.framework/FBAudienceNetwork(FBAdCache.o):
        warning: /var/folders/9j/vw2bf7xn53g9ms_nnp0sct9167gh9d/C/org.llvm.clang.chrisp/ModuleCache/1G1JKM0ZTO8SX/Darwin-MI6WZSG1PNOM.pcm: No object file for requested architecture
        while processing /Users/stakhar/DropBox/WeatherApps/development/iOS/WeatherApps/Pods/FBAudienceNetwork/FBAudienceNetwork.framework/FBAudienceNetwork(FBAdCache.o):
        warning: /var/folders/9j/vw2bf7xn53g9ms_nnp0sct9167gh9d/C/org.llvm.clang.chrisp/ModuleCache/1G1JKM0ZTO8SX/AudioToolBox-IDGAMJDSP9Z1.pcm: No such file or directory
        while processing /Users/stakhar/DropBox/WeatherApps/development/iOS/WeatherApps/Pods/FBAudienceNetwork/FBAudienceNetwork.framework/FBAudienceNetwork(FBAdCache.o):
        warning: /var/folders/9j/vw2bf7xn53g9ms_nnp0sct9167gh9d/C/org.llvm.clang.chrisp/ModuleCache/1G1JKM0ZTO8SX/AudioToolBox-IDGAMJDSP9Z1.pcm: No object file for requested architecture
        while processing /Users/stakhar/DropBox/WeatherApps/development/iOS/WeatherApps/Pods/FBAudienceNetwork/FBAudienceNetwork.framework/FBAudienceNetwork(FBAdCache.o):
        warning: /var/folders/9j/vw2bf7xn53g9ms_nnp0sct9167gh9d/C/org.llvm.clang.chrisp/ModuleCache/1G1JKM0ZTO8SX/CoreMedia-GG7O0RHFFJKF.pcm: No such file or directory
        while processing /Users/stakhar/DropBox/WeatherApps/development/iOS/WeatherApps/Pods/FBAudienceNetwork/FBAudienceNetwork.framework/FBAudienceNetwork(FBAdCache.o):
        warning: /var/folders/9j/vw2bf7xn53g9ms_nnp0sct9167gh9d/C/org.llvm.clang.chrisp/ModuleCache/1G1JKM0ZTO8SX/CoreMedia-GG7O0RHFFJKF.pcm: No object file for requested architecture
        while processing /Users/stakhar/DropBox/WeatherApps/development/iOS/WeatherApps/Pods/FBAudienceNetwork/FBAudienceNetwork.framework/FBAudienceNetwork(FBAdCache.o):
        warning: /var/folders/9j/vw2bf7xn53g9ms_nnp0sct9167gh9d/C/org.llvm.clang.chrisp/ModuleCache/1G1JKM0ZTO8SX/QuartzCore-3I7S0M4UEAD0U.pcm: No such file or directory
        while processing /Users/stakhar/DropBox/WeatherApps/development/iOS/WeatherApps/Pods/FBAudienceNetwork/FBAudienceNetwork.framework/FBAudienceNetwork(FBAdCache.o):
        warning: /var/folders/9j/vw2bf7xn53g9ms_nnp0sct9167gh9d/C/org.llvm.clang.chrisp/ModuleCache/1G1JKM0ZTO8SX/QuartzCore-3I7S0M4UEAD0U.pcm: No object file for requested architecture
        while processing /Users/stakhar/DropBox/WeatherApps/development/iOS/WeatherApps/Pods/FBAudienceNetwork/FBAudienceNetwork.framework/FBAudienceNetwork(FBAdCache.o):
        warning: /var/folders/9j/vw2bf7xn53g9ms_nnp0sct9167gh9d/C/org.llvm.clang.chrisp/ModuleCache/1G1JKM0ZTO8SX/SystemConfiguration-2O070L5BFB5B1.pcm: No such file or directory
        while processing /Users/stakhar/DropBox/WeatherApps/development/iOS/WeatherApps/Pods/FBAudienceNetwork/FBAudienceNetwork.framework/FBAudienceNetwork(FBAdCache.o):
        warning: /var/folders/9j/vw2bf7xn53g9ms_nnp0sct9167gh9d/C/org.llvm.clang.chrisp/ModuleCache/1G1JKM0ZTO8SX/SystemConfiguration-2O070L5BFB5B1.pcm: No object file for requested architecture
        while processing /Users/stakhar/DropBox/WeatherApps/development/iOS/WeatherApps/Pods/FBAudienceNetwork/FBAudienceNetwork.framework/FBAudienceNetwork(FBAdCache.o):
        warning: /var/folders/9j/vw2bf7xn53g9ms_nnp0sct9167gh9d/C/org.llvm.clang.chrisp/ModuleCache/1G1JKM0ZTO8SX/StoreKit-2XFSXANXKLC2A.pcm: No such file or directory
        while processing /Users/stakhar/DropBox/WeatherApps/development/iOS/WeatherApps/Pods/FBAudienceNetwork/FBAudienceNetwork.framework/FBAudienceNetwork(FBAdCache.o):
        warning: /var/folders/9j/vw2bf7xn53g9ms_nnp0sct9167gh9d/C/org.llvm.clang.chrisp/ModuleCache/1G1JKM0ZTO8SX/StoreKit-2XFSXANXKLC2A.pcm: No object file for requested architecture
        while processing /Users/stakhar/DropBox/WeatherApps/development/iOS/WeatherApps/Pods/FBAudienceNetwork/FBAudienceNetwork.framework/FBAudienceNetwork(FBAdCommandProcessor.o):
        warning: /var/folders/9j/vw2bf7xn53g9ms_nnp0sct9167gh9d/C/org.llvm.clang.chrisp/ModuleCache/1G1JKM0ZTO8SX/Foundation-A3SOD99KJ0S9.pcm: No such file or directory
        while processing /Users/stakhar/DropBox/WeatherApps/development/iOS/WeatherApps/Pods/FBAudienceNetwork/FBAudienceNetwork.framework/FBAudienceNetwork(FBAdCommandProcessor.o):
        warning: /var/folders/9j/vw2bf7xn53g9ms_nnp0sct9167gh9d/C/org.llvm.clang.chrisp/ModuleCache/1G1JKM0ZTO8SX/Foundation-A3SOD99KJ0S9.pcm: No object file for requested architecture
        while processing /Users/stakhar/DropBox/WeatherApps/development/iOS/WeatherApps/Pods/FBAudienceNetwork/FBAudienceNetwork.framework/FBAudienceNetwork(FBAdCommandProcessor.o):
        warning: /var/folders/9j/vw2bf7xn53g9ms_nnp0sct9167gh9d/C/org.llvm.clang.chrisp/ModuleCache/1G1JKM0ZTO8SX/StoreKit-2XFSXANXKLC2A.pcm: No such file or directory
        while processing /Users/stakhar/DropBox/WeatherApps/development/iOS/WeatherApps/Pods/FBAudienceNetwork/FBAudienceNetwork.framework/FBAudienceNetwork(FBAdCommandProcessor.o):
        warning: /var/folders/9j/vw2bf7xn53g9ms_nnp0sct9167gh9d/C/org.llvm.clang.chrisp/ModuleCache/1G1JKM0ZTO8SX/StoreKit-2XFSXANXKLC2A.pcm: No object file for requested architecture
        while processing /Users/stakhar/DropBox/WeatherApps/development/iOS/WeatherApps/Pods/FBAudienceNetwork/FBAudienceNetwork.framework/FBAudienceNetwork(FBAdCommandProcessor.o):
        warning: /var/folders/9j/vw2bf7xn53g9ms_nnp0sct9167gh9d/C/org.llvm.clang.chrisp/ModuleCache/1G1JKM0ZTO8SX/Darwin-MI6WZSG1PNOM.pcm: No such file or directory
        while processing /Users/stakhar/DropBox/WeatherApps/development/iOS/WeatherApps/Pods/FBAudienceNetwork/FBAudienceNetwork.framework/FBAudienceNetwork(FBAdCommandProcessor.o):
        warning: /var/folders/9j/vw2bf7xn53g9ms_nnp0sct9167gh9d/C/org.llvm.clang.chrisp/ModuleCache/1G1JKM0ZTO8SX/Darwin-MI6WZSG1PNOM.pcm: No object file for requested architecture
        while processing /Users/stakhar/DropBox/WeatherApps/development/iOS/WeatherApps/Pods/FBAudienceNetwork/FBAudienceNetwork.framework/FBAudienceNetwork(FBAdCommandProcessor.o):
        warning: /var/folders/9j/vw2bf7xn53g9ms_nnp0sct9167gh9d/C/org.llvm.clang.chrisp/ModuleCache/1G1JKM0ZTO8SX/AudioToolBox-IDGAMJDSP9Z1.pcm: No such file or directory
        while processing /Users/stakhar/DropBox/WeatherApps/development/iOS/WeatherApps/Pods/FBAudienceNetwork/FBAudienceNetwork.framework/FBAudienceNetwork(FBAdCommandProcessor.o):
        warning: /var/folders/9j/vw2bf7xn53g9ms_nnp0sct9167gh9d/C/org.llvm.clang.chrisp/ModuleCache/1G1JKM0ZTO8SX/AudioToolBox-IDGAMJDSP9Z1.pcm: No object file for requested architecture
        while processing /Users/stakhar/DropBox/WeatherApps/development/iOS/WeatherApps/Pods/FBAudienceNetwork/FBAudienceNetwork.framework/FBAudienceNetwork(FBAdCommandProcessor.o):
        warning: /var/folders/9j/vw2bf7xn53g9ms_nnp0sct9167gh9d/C/org.llvm.clang.chrisp/ModuleCache/1G1JKM0ZTO8SX/CoreMedia-GG7O0RHFFJKF.pcm: No such file or directory
        while processing /Users/stakhar/DropBox/WeatherApps/development/iOS/WeatherApps/Pods/FBAudienceNetwork/FBAudienceNetwork.framework/FBAudienceNetwork(FBAdCommandProcessor.o):
        warning: /var/folders/9j/vw2bf7xn53g9ms_nnp0sct9167gh9d/C/org.llvm.clang.chrisp/ModuleCache/1G1JKM0ZTO8SX/CoreMedia-GG7O0RHFFJKF.pcm: No object file for requested architecture
        while processing /Users/stakhar/DropBox/WeatherApps/development/iOS/WeatherApps/Pods/FBAudienceNetwork/FBAudienceNetwork.framework/FBAudienceNetwork(FBAdCommandProcessor.o):
        warning: /var/folders/9j/vw2bf7xn53g9ms_nnp0sct9167gh9d/C/org.llvm.clang.chrisp/ModuleCache/1G1JKM0ZTO8SX/QuartzCore-3I7S0M4UEAD0U.pcm: No such file or directory
        while processing /Users/stakhar/DropBox/WeatherApps/development/iOS/WeatherApps/Pods/FBAudienceNetwork/FBAudienceNetwork.framework/FBAudienceNetwork(FBAdCommandProcessor.o):
        warning: /var/folders/9j/vw2bf7xn53g9ms_nnp0sct9167gh9d/C/org.llvm.clang.chrisp/ModuleCache/1G1JKM0ZTO8SX/QuartzCore-3I7S0M4UEAD0U.pcm: No object file for requested architecture
        while processing /Users/stakhar/DropBox/WeatherApps/development/iOS/WeatherApps/Pods/FBAudienceNetwork/FBAudienceNetwork.framework/FBAudienceNetwork(FBAdCommandProcessor.o):
        warning: /var/folders/9j/vw2bf7xn53g9ms_nnp0sct9167gh9d/C/org.llvm.clang.chrisp/ModuleCache/1G1JKM0ZTO8SX/SystemConfiguration-2O070L5BFB5B1.pcm: No such file or directory
        while processing /Users/stakhar/DropBox/WeatherApps/development/iOS/WeatherApps/Pods/FBAudienceNetwork/FBAudienceNetwork.framework/FBAudienceNetwork(FBAdCommandProcessor.o):
        warning: /var/folders/9j/vw2bf7xn53g9ms_nnp0sct9167gh9d/C/org.llvm.clang.chrisp/ModuleCache/1G1JKM0ZTO8SX/SystemConfiguration-2O070L5BFB5B1.pcm: No object file for requested architecture
        while processing /Users/stakhar/DropBox/WeatherApps/development/iOS/WeatherApps/Pods/FBAudienceNetwork/FBAudienceNetwork.framework/FBAudienceNetwork(FBAdCommandProcessor.o):
        warning: /var/folders/9j/vw2bf7xn53g9ms_nnp0sct9167gh9d/C/org.llvm.clang.chrisp/ModuleCache/1G1JKM0ZTO8SX/UIKit-2LM3EQU7VVY4O.pcm: No such file or directory
        while processing /Users/stakhar/DropBox/WeatherApps/development/iOS/WeatherApps/Pods/FBAudienceNetwork/FBAudienceNetwork.framework/FBAudienceNetwork(FBAdCommandProcessor.o):
        warning: /var/folders/9j/vw2bf7xn53g9ms_nnp0sct9167gh9d/C/org.llvm.clang.chrisp/ModuleCache/1G1JKM0ZTO8SX/UIKit-2LM3EQU7VVY4O.pcm: No object file for requested architecture

在研究了这个问题后,我发现可以进行一些调整来构建解决了某些人问题的设置:

>预编译前缀(GCC_PRECOMPILE_PREFIX_HEADER)= NO
>调试信息格式(DEBUG_informatION_FORMAT)=带有dSYM的DWARF
>启用模块(C和Objective-C)(CLANG_ENABLE_MODULES)= NO
(在这里找到https://forums.developer.apple.com/thread/17921和其他几个论坛)

这不适合我.我能够删除警告的唯一方法是设置GCC_GENERATE_DEBUGGING_SYMBOLS = NO以便不显示警告或通过设置DEBUG_informatION_FORMAT = DWARF(而不是’DWARF with dSYM’文件)禁用dsym文件的生成. dsym文件对我很重要,因为我使用的所有崩溃报告软件都使用它,因此禁用此过程或通过更改构建设置来抑制警告对我来说不是一个解决方案.

问题:
1.这是我的构建设置的问题,还是Facebook Audience Network SDK和我正在使用的其他第三方SDK有问题?2.如果我提交我的应用程序有很多警告(200)它会被批准吗?

解决方法

我有同样的问题. Facebook表示他们已经意识到这一点并且不是高优先级,因为它不会影响应用程序.我回退到4.7.1警告问题不再存在.

我不认为它会被拒绝但不能确定.

ios – 200在xcode 7中生成DSMM警告的更多相关文章

  1. ios – Xcode找不到Alamofire,错误:没有这样的模块’Alamofire’

    我正在尝试按照github(https://github.com/Alamofire/Alamofire#cocoapods)指令将Alamofire包含在我的Swift项目中.我创建了一个新项目,导航到项目目录并运行此命令sudogeminstallcocoapods.然后我面临以下错误:搜索后我设法通过运行此命令安装cocoapodssudogeminstall-n/usr/local/bin

  2. ios – Xcode在发布时崩溃

    我正在开发iOS应用程序,我在应用程序中没有更改任何内容.但是在重新启动我的Mac时,XCode每次都会崩溃.不知道这是否重要,但我的聚光灯找不到任何应用程序当我打开取景器并使用快捷键cmdshiftH时我看到一个白色的窗户.Xcode不再启动并抛出此错误:我希望有一个人可以帮助我.这会导致与权限冲突吗?

  3. xcode找不到匹配的配置文件

    我有一个AdhociOS应用程序,它给了我“在xcode6中找不到匹配的配置文件”,我创建了一个Adhoc配置文件,下载它,双击它并在General–Identity下选择了一个团队.但我接着得到了那条消息,并尝试使用“修复问题”按钮没有帮助.在构建设置–供应配置文件–发布我有“自动”.任何人都可以帮助我,我完全迷失了……

  4. iOS:调试无法在XCode中运行

    我正在使用XCode4和iOSSDK4.3.我的调试工作正常,但现在我发现在设置断点时,应用暂停,但XCode不关注编辑器中的行.点击断点时也不会显示绿色箭头.我有一个在AppDelegate中分配的UINavigationController.当我在didFinishLaunchingWithOptions中设置断点时,一切都按预期工作:这是当一个断点暂停了mapViewController中的

  5. ios – 如何/是否在Xcode中制作通用故事板

    在Xcode中创建故事板文件时,您必须选择是否适用于iPhone或iPad.这意味着应始终将iPhone和iPadUI放入单独的故事板中.这是真的?我的应用程序有多个故事板.虽然Main.storyboard文件在iPhone和iPad之间存在很大差异,但其他故事板几乎完全相同.唯一的区别可能是推动iPhone与iPhone上的popover,可以通过编程方式处理.制作两个故事板似乎非常愚蠢和多余.因此,如果制作一个“通用”故事板,是否应该在Xcode中选择iPhone或iPad?

  6. xcode – 如何通过LLDB命令行添加断点操作?

    如果你从Xcode编辑一个断点,有一个超级有用的选项,可以添加一个“Action”,以便在每次遇到断点时自动执行.如何从LLDB命令行添加此类操作?

  7. XCode:将故事板导出到图像

    我有一个小问题……

  8. xcode6.1 – Xcode 6.1中项目模板中缺少类前缀

    项目模板上曾经有一个类前缀字段,这有助于区分项目类和框架类.Xcode6.1项目模板中不再提供此功能.这背后的意图是什么?

  9. 为Xcode中的iPhone 5手电筒应用调暗LED

    我期待用滑块选项调暗手电筒的LED.我知道Apple支持iOS6但是,我不确定要使用哪些代码.这是我目前在.m文件中的代码.解决方法–(BOOL)setTorchModeOnWithLevel:(float)torchLevel错误:(NSError**)outError你想要的是什么但是,从我所看到的,它只在某些间隔(~0.2)更新.编辑–完整示例:这是一个UiSlider.您需要在滑块上添加I

  10. ios – 将视频分享到Facebook

    我正在编写一个简单的测试应用程序,用于将视频从iOS上传到Facebook.由于FacebookSDK的所有文档都在Objective-C中,因此我发现很难在线找到有关如何使用Swift执行此操作的示例/教程.到目前为止我有这个在我的UI上放置一个共享按钮,但它看起来已禁用,从我读到的这是因为没有内容设置,但我看不出这是怎么可能的.我的getVideoURL()函数返回一个NSURL,它肯定包含视

随机推荐

  1. iOS实现拖拽View跟随手指浮动效果

    这篇文章主要为大家详细介绍了iOS实现拖拽View跟随手指浮动,文中示例代码介绍的非常详细,具有一定的参考价值,感兴趣的小伙伴们可以参考一下

  2. iOS – genstrings:无法连接到输出目录en.lproj

    使用我桌面上的项目文件夹,我启动终端输入:cd然后将我的项目文件夹拖到终端,它给了我路径.然后我将这行代码粘贴到终端中找.-name*.m|xargsgenstrings-oen.lproj我在终端中收到此错误消息:genstrings:无法连接到输出目录en.lproj它多次打印这行,然后说我的项目是一个目录的路径?没有.strings文件.对我做错了什么的想法?

  3. iOS 7 UIButtonBarItem图像没有色调

    如何确保按钮图标采用全局色调?解决方法只是想将其转换为根注释,以便为“回答”复选标记提供更好的上下文,并提供更好的格式.我能想出这个!

  4. ios – 在自定义相机层的AVFoundation中自动对焦和自动曝光

    为AVFoundation定制图层相机创建精确的自动对焦和曝光的最佳方法是什么?

  5. ios – Xcode找不到Alamofire,错误:没有这样的模块’Alamofire’

    我正在尝试按照github(https://github.com/Alamofire/Alamofire#cocoapods)指令将Alamofire包含在我的Swift项目中.我创建了一个新项目,导航到项目目录并运行此命令sudogeminstallcocoapods.然后我面临以下错误:搜索后我设法通过运行此命令安装cocoapodssudogeminstall-n/usr/local/bin

  6. ios – 在没有iPhone6s或更新的情况下测试ARKit

    我在决定下载Xcode9之前.我想玩新的框架–ARKit.我知道要用ARKit运行app我需要一个带有A9芯片或更新版本的设备.不幸的是我有一个较旧的.我的问题是已经下载了新Xcode的人.在我的情况下有可能运行ARKit应用程序吗?那个或其他任何模拟器?任何想法或我将不得不购买新设备?解决方法任何iOS11设备都可以使用ARKit,但是具有高质量AR体验的全球跟踪功能需要使用A9或更高版本处理器的设备.使用iOS11测试版更新您的设备是必要的.

  7. 将iOS应用移植到Android

    我们制作了一个具有2000个目标c类的退出大型iOS应用程序.我想知道有一个最佳实践指南将其移植到Android?此外,由于我们的应用程序大量使用UINavigation和UIView控制器,我想知道在Android上有类似的模型和实现.谢谢到目前为止,guenter解决方法老实说,我认为你正在计划的只是制作难以维护的糟糕代码.我意识到这听起来像很多工作,但从长远来看它会更容易,我只是将应用程序的概念“移植”到android并从头开始编写.

  8. ios – 在Swift中覆盖Objective C类方法

    我是Swift的初学者,我正在尝试在Swift项目中使用JSONModel.我想从JSONModel覆盖方法keyMapper,但我没有找到如何覆盖模型类中的Objective-C类方法.该方法的签名是:我怎样才能做到这一点?解决方法您可以像覆盖实例方法一样执行此操作,但使用class关键字除外:

  9. ios – 在WKWebView中获取链接URL

    我想在WKWebView中获取tapped链接的url.链接采用自定义格式,可触发应用中的某些操作.例如HTTP://我的网站/帮助#深层链接对讲.我这样使用KVO:这在第一次点击链接时效果很好.但是,如果我连续两次点击相同的链接,它将不报告链接点击.是否有解决方法来解决这个问题,以便我可以检测每个点击并获取链接?任何关于这个的指针都会很棒!解决方法像这样更改addobserver在observeValue函数中,您可以获得两个值

  10. ios – 在Swift的UIView中找到UILabel

    我正在尝试在我的UIViewControllers的超级视图中找到我的UILabels.这是我的代码:这是在Objective-C中推荐的方式,但是在Swift中我只得到UIViews和CALayer.我肯定在提供给这个方法的视图中有UILabel.我错过了什么?我的UIViewController中的调用:解决方法使用函数式编程概念可以更轻松地实现这一目标.

返回
顶部