4.2制作 framework框架成功,现在把它基于设备编译,被添加到主项目后,然后在真机上调试运行程序会crash掉!
我前面基于模拟器运行是能够成功的!哪位兄弟知道基于真机运行还需要哪些设置问题要改变呢?
在真机上运行,报错信息如下:
2011-11-21 11:25:06.016 Validation[3367:f07] Could not load framework at “file://localhost/Developer/Applications/Utilities/Application%20Loader.app/Contents/Frameworks/ITunesSoftwareService.framework/” (err = Error Domain=NSCocoaErrorDomain Code=3587 "The bundle “ITunesSoftwareService” couldn’t be loaded because it is damaged or missing necessary resources." (dlopen_preflight(/Developer/Applications/Utilities/Application Loader.app/Contents/Frameworks/ITunesSoftwareService.framework/ITunesSoftwareService): Library not loaded: @rpath/ITunesConnectFoundation.framework/Versions/A/ITunesConnectFoundation
Referenced from: /Developer/Applications/Utilities/Application Loader.app/Contents/Frameworks/ITunesSoftwareService.framework/ITunesSoftwareService
Reason: image not found) UserInfo=0x40011ad20 {NSLocalizedFailureReason=The bundle is damaged or missing necessary resources., NSLocalizedRecoverySuggestion=Try reinstalling the bundle., NSFilePath=/Developer/Applications/Utilities/Application Loader.app/Contents/Frameworks/ITunesSoftwareService.framework/ITunesSoftwareService, NSDebugDescription=dlopen_preflight(/Developer/Applications/Utilities/Application Loader.app/Contents/Frameworks/ITunesSoftwareService.framework/ITunesSoftwareService): Library not loaded: @rpath/ITunesConnectFoundation.framework/Versions/A/ITunesConnectFoundation
Referenced from: /Developer/Applications/Utilities/Application Loader.app/Contents/Frameworks/ITunesSoftwareService.framework/ITunesSoftwareService
Reason: image not found, NSBundlePath=/Developer/Applications/Utilities/Application Loader.app/Contents/Frameworks/ITunesSoftwareService.framework, NSLocalizedDescription=The bundle “ITunesSoftwareService” couldn’t be loaded because it is damaged or missing necessary resources.})
warning: Application validation was skipped.
分享到:
相关推荐
以下是关于iOS框架制作的详细步骤和相关知识点: 1. **了解框架类型**: - 静态库(Static Library):编译时链接到目标应用中,形成一个完整的可执行文件。 - 动态库(Dynamic Library):运行时通过动态链接器...
为了确保静态库能在真机和模拟器上运行,你需要分别在“Generic iOS Device”和最新的iPhone模拟器(例如“iPhone 6s Plus”)下编译一次。编译完成后,工程的“Products”文件夹下的`.framework`文件会从红色变为...
也就是在真机运行是没有找到对应的framework包,在网上找的一些办法将框架引用从Required 变为Optional ,根本就是治标不治本,等到运行到这个framework的代码是也会崩溃,我们需要做的是将这个framework拷贝到项目...
在 Ionic Framework Meetup 上创建的应用程序是为开发者们提供一个实践和展示 Ionic 框架能力的平台。Ionic 是一个开源的移动应用开发框架,它基于 Angular 和 Web 技术(如 HTML、CSS 和 JavaScript),使开发者...