ios - GHUnit sumbols for arm64 missing -
i try run ghunit on device , receive following compile error.
ld: warning: directory not found option '-l/users/gtaskos/documents/projects/my/sdks/my ios sdk/my-ios/pods/build/debug-iphoneos' ld: warning: ignoring file /users/gtaskos/documents/projects/my/sdks/my ios sdk/my-ios/frameworks/ghunitios.framework/ghunitios, missing required architecture arm64 in file /users/gtaskos/documents/projects/my/sdks/my ios sdk/my-ios/frameworks/ghunitios.framework/ghunitios (4 slices) undefined symbols architecture arm64: "_objc_metaclass_$_ghasynctestcase", referenced from: _objc_metaclass_$_myminttests in myminttests.o "_objc_class_$_ghasynctestcase", referenced from: _objc_class_$_myminttests in myminttests.o "_objc_class_$_ghtesting", referenced from: objc-class-ref in myminttests.o "_ghcomposestring", referenced from: ___38-[myminttests testgetdetailsasync]_block_invoke in myminttests.o ___38-[myminttests testgetdetailsasync]_block_invoke38 in myminttests.o -[myminttests teststrings] in myminttests.o ld: symbol(s) not found architecture arm64 clang: error: linker command failed exit code 1 (use -v see invocation)
strange tried https://github.com/gh-unit/gh-unit/tree/master/examples/mytestable-ios
, works pretty fine.
some configuration/setup. have workspace static library project uses pods dependency, in project have ocunit tests target, framework aggregate , added empty application target configured use ghunit, added framework , used ghunitiosappdelegate
in main.cs
.
then added objective-c class custom name mymintghunittests.m has methods (although teststrings available when run target, question stackoverflow).
- (void) testgetdetailsasync { // call prepare setup asynchronous action. // helps in cases action synchronous , // action occurs before wait called. [self prepare]; [self.utility getdetailsnumwithblock:^(nsnumber *total) { ghtestlog(@"details number: %@", total); ghassertnotnil(totalcrashes, nil); [self notify:kghunitwaitstatussuccess forselector:@selector(getdetailsasynctest)]; } failure:^(nserror *error) { ghtestlog(@"failed details: %@", error.description); ghassertnil(error, nil); [self notify:kghunitwaitstatussuccess forselector:@selector(getdetailsasynctest)]; }]; // wait until notify called timeout (seconds); if notify not called kghunitwaitstatussuccess // throw error. [self waitforstatus:kghunitwaitstatussuccess timeout:5.0]; }
class inherits ghasynctestcase
.
maybe should use pods ghunit target.
the target runs on simulator (without methods) perfect fails on device.
Comments
Post a Comment