草庐IT

fcatch-undefined-behavior

全部标签

ios - XCode 4.3, "Cannot define category for undefined class"使用多个 header

直到最近,我有一个项目在XCode中编译得很好;但是现在我正在为以下内容挠头:Cannotdefinecategoryforundefinedclass'myClass'我有一个通过类别扩展另一个标题的标题,如下所示:我的类.h@interfacemyClass:UIView@property....-(void)method....@end我的类+我的类别.h#import"myClass.h"@interfacemyClass(MyCategory)-(void)method2...@end我的类.m#import"myClass.h"#import"myClass+myCateg

ios - iOS 中的 Admob 集成错误( undefined symbol )

我在我的项目中集成了admob。添加了所有框架、其他链接器标志和中介ID。我创建横幅View的代码是:if([[UIDevicecurrentDevice]userInterfaceIdiom]==UIUserInterfaceIdiomPhone){CGPointorigin=CGPointMake(self.window.frame.size.height/2-CGSizeFromGADAdSize(kGADAdSizeBanner).width/2,0.0);self.m_pBannerView=[[GADBannerViewalloc]initWithAdSize:kGADAd

ios - 架构 i386 : "_sqlite3_open", 的 undefined symbol 引用自:

我的应用程序中也有sqlite3.dylib,但它给了我上面的错误,我不知道如何修复此错误。请有人帮助我,我在等吗?架构i386的undefinedsymbol:“_sqlite3_open”,引用自:-MyDataBase.o中的[MyDataBaseopenOrCreateDatabase:]“_sqlite3_exec”,引用自:-[MyDataBasecreateTable:]inMyDataBase.o-MyDataBase.o中的[MyDataBaseInsertTable:]-MyDataBase.o中的[MyDataBaseUpdataTable:]-MyDataBas

c++ - OpenCV Apple Mach-O 链接器错误 - 体系结构 x86_64 的 undefined symbol

我正在尝试通过xcode6运行一个opencv项目。现在,我想使用Xcode6作为开发环境。但是我收到AppleMach-OLinker错误。我在项目中添加opencv2.framework。但我无法构建项目。那是错误;Ld/Users/algorist/Library/Developer/Xcode/DerivedData/OpenCVTest-gngmfszrvncpuqfhljuggdtereui/Build/Products/Debug-iphonesimulator/OpenCVTest.app/OpenCVTestnormalx86_64cd/Users/algorist/

javascript - react native 导航器 : Cannot read property 'push' of undefined

所以我在玩ReactNative,在我的第一个Navigator成功之后,我制作了另一个Navigator来路由到另一个页面。这是我的文件结构:项目-机器人/-备份/-ios/-节点模块/-来源/--购买.js--聊天.js--main.js--nargo.ios.js--样式.js-index.android.js/-index.ios.js/-介绍.js/-main.js/-package.json/这是我的-index.ios.js:importReact,{Component}from'react';import{AppRegistry,}from'react-native';

ios - (react-native realm) undefined 不是对象(评估 '_realm.Realm.schemaVersion' )

我之前使用realm(0.13.2)没问题。但是当我将插件更新到realm(1.2.0)时,它发生了:undefinedisnotanobject(evaluating'_realm.Realm.schemaVersion')configureRealmconfigure.js:14:19和configure.js,第14行:varnext=Realm.schemaVersion(Realm.defaultPath);怎么了? 最佳答案 我发现Realm有默认导出。所以,我应该更改我的导入代码来自从'realm'导入{Realm};

javascript - 类型错误 : Cannot read property 'receiptnumber' of undefined in react native

我的组件有这些属性constructor(props){super(props);this._onPress=this._onPress.bind(this);this.state={receiptnumber:"",text:"",time:"",isDateTimePickerVisible:false};}我已经在执行良好的按钮的点击事件上绑定(bind)了_onPress方法。我正在_onPress方法中调用另一个方法_saveScheduleMessage,我试图访问this.state.receiptnumber我收到错误。_onPress(){try{if(Platfor

ios - 架构 i386 链接命令退出代码 1 的 undefined symbol

我在为模拟器构建时遇到这个错误:Undefinedsymbolsforarchitecturearmv7:"_OBJC_CLASS_$_SA_OAuthTwitterEngine",referencedfrom:objc-class-refinNetworkUpdateViewController.o"_OBJC_CLASS_$_SA_OAuthTwitterController",referencedfrom:objc-class-refinNetworkUpdateViewController.o"_OBJC_CLASS_$_MGTwitterEngine",referencedf

ios - 用于 Unity iOS Mach-O 链接器错误的 FacebookSDK - undefined symbol _iosLogin,

我已根据此处的教程将FacebookSDK添加到我的Unity项目中https://developers.facebook.com/docs/unity/getting-started/canvas/.这意味着我已经下载了SDK.unitypackage,将其导入到Unity项目中,并在配置设置检查器中设置了应用程序名称和ID。当我尝试为设备构建时,Xcode构建因以下Mach-O链接器错误而挂起:Undefinedsymbolsforarchitecturearmv7:"_iosLogin",referencedfrom:RegisterMonoModules()inRegister

ios - _CMSampleBufferGetAudioBufferListWithRetainedBlockBuffer 的 undefined symbol

我有这段代码,我正在尝试使用它来捕获音频数据。然而,编译器提示CMSampleBufferGetAudioBufferListWithRetainedBlockBuffer-(void)captureOutput:(AVCaptureOutput*)captureOutputdidOutputSampleBuffer:(CMSampleBufferRef)sampleBufferfromConnection:(AVCaptureConnection*)connection{AudioBufferListaudioBufferList;NSMutableData*data=[[NSMut