Cross compilation cgo project from Mac x86 for M1 - go

I am trying to cross compile go app which is written in C, Objective-C, and Go.
It works fine on Mac x86, and I am trying to use the cross-compile it for M1.
So simply ran
GOARCH=arm64 /usr/bin/go build -o "~/Example/project/obj/mac-arm64/dummy" -gcflags "-N -l" -ldflags "-w" -race dummy
CC version:
joshiga#joshiga-a01 bin % /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang --version
Apple clang version 12.0.0 (clang-1200.0.32.27)
Target: x86_64-apple-darwin20.6.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/
CXX version:
joshiga#joshiga-a01 bin % /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ --version
Apple clang version 12.0.0 (clang-1200.0.32.27)
Target: x86_64-apple-darwin20.6.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/
$ go version
go version go1.16.9 darwin/amd64
$ go env
GOARCH=arm64
GOOS=darwin
'GOROOT': '/Users/joshiga/ws/dev/main/bora/build/package/COMPONENTS/cayman_go/sb-51450161/macosx-catalina/apple_mac64', 'GODEBUG': 'cgocheck=2', 'GOARCH': 'amd64', 'CGO_ENABLED': '1', ''GO111MODULE': 'off'
I was expecting it to successfully crosscompile and create a binary for ARM. Please
note for x86 Mac it works fine.
joshiga#joshiga-a01 bin % uname -a
Darwin joshiga-a01.vmware.com 20.6.0 Darwin Kernel Version 20.6.0: Tue Oct 12 18:33:42 PDT 2021; root:xnu-7195.141.8~1/RELEASE_X86_64 x86_64
But the got the below error:
Undefined symbols for architecture arm64:
"___tsan_acquire", referenced from:
_runtime.raceacquireg in go.o
_runtime.raceacquirectx in go.o
"___tsan_finalizer_goroutine", referenced from:
_runtime.runfinq in go.o
"___tsan_fini", referenced from:
_runtime.racefini in go.o
"___tsan_free", referenced from:
_runtime.(*mspan).sweep in go.o
"___tsan_func_enter", referenced from:
_racefuncenter in go.o
"___tsan_func_exit", referenced from:
_runtime.racefuncexit in go.o
"___tsan_go_atomic32_compare_exchange", referenced from:
_sync/atomic.CompareAndSwapInt32 in go.o
"___tsan_go_atomic32_fetch_add", referenced from:
_sync/atomic.AddInt32 in go.o
"___tsan_go_atomic32_load", referenced from:
_sync/atomic.LoadInt32 in go.o
"___tsan_go_atomic32_store", referenced from:
_sync/atomic.StoreInt32 in go.o
"___tsan_go_atomic64_compare_exchange", referenced from:
_sync/atomic.CompareAndSwapInt64 in go.o
"___tsan_go_atomic64_fetch_add", referenced from:
_sync/atomic.AddInt64 in go.o
"___tsan_go_atomic64_load", referenced from:
_sync/atomic.LoadInt64 in go.o
"___tsan_go_atomic64_store", referenced from:
_sync/atomic.StoreInt64 in go.o
"___tsan_go_end", referenced from:
_runtime.goexit1 in go.o
_runtime.(*p).destroy in go.o
"___tsan_go_ignore_sync_begin", referenced from:
_runtime.RaceDisable in go.o
_racecallatomic in go.o
"___tsan_go_ignore_sync_end", referenced from:
_runtime.RaceEnable in go.o
_racecallatomic in go.o
"___tsan_go_start", referenced from:
_runtime.racegostart in go.o
"___tsan_init", referenced from:
_runtime.raceinit in go.o
"___tsan_malloc", referenced from:
_runtime.mallocgc in go.o
_runtime.gfget in go.o
_runtime.stackalloc in go.o
"___tsan_map_shadow", referenced from:
_runtime.raceinit in go.o
_runtime.racemapshadow in go.o
"___tsan_proc_create", referenced from:
_runtime.(*p).init in go.o
"___tsan_proc_destroy", referenced from:
_runtime.(*p).destroy in go.o
"___tsan_read", referenced from:
_runtime.raceread in go.o
"___tsan_read_pc", referenced from:
_runtime.racereadpc in go.o
"___tsan_read_range", referenced from:
_runtime.racereadrange in go.o
_runtime.racereadrangepc1 in go.o
"___tsan_release", referenced from:
_runtime.racereleaseg in go.o
"___tsan_release_acquire", referenced from:
_runtime.racereleaseacquireg in go.o
"___tsan_release_merge", referenced from:
_runtime.racereleasemergeg in go.o
"___tsan_write", referenced from:
_runtime.racewrite in go.o
"___tsan_write_pc", referenced from:
_runtime.racewritepc in go.o
"___tsan_write_range", referenced from:
_runtime.racewriterange in go.o
_runtime.racewriterangepc1 in go.o
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Any ideas or suggestions what I could be doing wrong?

Related

Error installing nokogumbo 2.0.5 in Mac M1

I'm trying to install nokogumbo in my project using 'gem install nokogumbo' or 'bundle install' but i always get this error
Installing nokogumbo 2.0.5 with native extensions
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
current directory:
/Users/rafaelpolonio/.rvm/gems/ruby-2.7.6/gems/nokogumbo-2.0.5/ext/nokogumbo
/Users/rafaelpolonio/.rvm/rubies/ruby-2.7.6/bin/ruby -I
/Users/rafaelpolonio/.rvm/rubies/ruby-2.7.6/lib/ruby/site_ruby/2.7.0 extconf.rb
checking for whether
-I/Users/rafaelpolonio/.rvm/rubies/ruby-2.7.6/lib/ruby/gems/2.7.0/gems/nokogiri-1.13.9-arm64-darwin/ext/nokogiri
is accepted as CFLAGS... yes
checking for whether
-I/Users/rafaelpolonio/.rvm/rubies/ruby-2.7.6/lib/ruby/gems/2.7.0/gems/nokogiri-1.13.9-arm64-darwin/ext/nokogiri/include
is accepted as CFLAGS... yes
checking for whether
1 warning generated.
compiling ./../../gumbo-parser/src/tag.c
compiling ./../../gumbo-parser/src/parser.c
./../../gumbo-parser/src/parser.c:540:10: warning: cast to smaller integer type
'GumboInsertionMode' from 'void *' [-Wvoid-pointer-to-enum-cast]
return (GumboInsertionMode) modes->data[(modes->length - 1)];
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 warning generated.
linking shared-object nokogumbo/nokogumbo.bundle
Undefined symbols for architecture arm64:
"_Nokogiri_wrap_xml_document", referenced from:
_parse_continue in nokogumbo.o
"_cNokogiriXmlSyntaxError", referenced from:
_add_errors in nokogumbo.o
"_htmlNewDocNoDtD", referenced from:
_parse_continue in nokogumbo.o
"_mNokogiri", referenced from:
_Init_nokogumbo in nokogumbo.o
"_xmlAddChild", referenced from:
_build_tree in nokogumbo.o
"_xmlCreateIntSubset", referenced from:
_parse_continue in nokogumbo.o
"_xmlFreeDoc", referenced from:
_parse_cleanup in nokogumbo.o
"_xmlNewCDataBlock", referenced from:
_build_tree in nokogumbo.o
"_xmlNewDocComment", referenced from:
_build_tree in nokogumbo.o
"_xmlNewDocNode", referenced from:
_build_tree in nokogumbo.o
"_xmlNewDocText", referenced from:
_build_tree in nokogumbo.o
"_xmlNewNs", referenced from:
_build_tree in nokogumbo.o
"_xmlNewNsProp", referenced from:
_build_tree in nokogumbo.o
"_xmlSearchNs", referenced from:
_build_tree in nokogumbo.o
"_xmlSetNs", referenced from:
_build_tree in nokogumbo.o
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [nokogumbo.bundle] Error 1
My nokogiri is 1.10.0 in my Gemfile.lock
I already tried to install in different ways, upgrate the nokogiri to 1.13.9
How can I solve this problem?

How to slove xcode build error 'Undefined symbols for architecture x86_64'

I tried to run the project in the emulator, I encountered some problems and solved it, I finally got the following error, I tried many ways, but I can't solve it. How can I fix this, please give me some ideas, I'm new to ios development.
cpu: m1 pro
system: macOS12.3
xcode: 13.4
react native: 0.62.2
The following is the error message:
Showing Recent Errors Only
Build target tolernPowerBankApp of project demo with configuration Debug
Undefined symbols for architecture x86_64:
"_OBJC_CLASS_$_OIDURLQueryComponent", referenced from:
objc-class-ref in GoogleSignIn(GIDSignIn_f05654be6d1b2af59ab6df426a0c4eb9.o)
"_OBJC_CLASS_$_GTMSessionFetcher", referenced from:
objc-class-ref in GoogleSignIn(GIDSignIn_f05654be6d1b2af59ab6df426a0c4eb9.o)
"_OBJC_CLASS_$_OIDAuthorizationRequest", referenced from:
objc-class-ref in GoogleSignIn(GIDSignIn_f05654be6d1b2af59ab6df426a0c4eb9.o)
"_OIDResponseTypeCode", referenced from:
-[GIDSignIn authenticateInteractivelyWithOptions:] in GoogleSignIn(GIDSignIn_f05654be6d1b2af59ab6df426a0c4eb9.o)
"_OBJC_CLASS_$_OIDAuthState", referenced from:
objc-class-ref in GoogleSignIn(GIDAuthentication_7b83cc27af8929ec7e4c9760d73a0f31.o)
objc-class-ref in GoogleSignIn(GIDSignIn_f05654be6d1b2af59ab6df426a0c4eb9.o)
"_OBJC_CLASS_$_OIDAuthorizationService", referenced from:
objc-class-ref in GoogleSignIn(GIDAuthentication_7b83cc27af8929ec7e4c9760d73a0f31.o)
objc-class-ref in GoogleSignIn(GIDSignIn_f05654be6d1b2af59ab6df426a0c4eb9.o)
"_OIDOAuthErrorResponseErrorKey", referenced from:
+[GIDAuthentication handleTokenFetchEMMError:completion:] in GoogleSignIn(GIDAuthentication_7b83cc27af8929ec7e4c9760d73a0f31.o)
"_OBJC_CLASS_$_SKDescriptorMapper", referenced from:
objc-class-ref in AppDelegate.o
"_OBJC_CLASS_$_GTMAppAuthFetcherAuthorization", referenced from:
_OBJC_CLASS_$_GTMAppAuthFetcherAuthorizationWithEMMSupport in GoogleSignIn(GIDAuthentication_7b83cc27af8929ec7e4c9760d73a0f31.o)
objc-class-ref in GoogleSignIn(GIDAuthentication_7b83cc27af8929ec7e4c9760d73a0f31.o)
objc-class-ref in GoogleSignIn(GIDSignIn_f05654be6d1b2af59ab6df426a0c4eb9.o)
objc-class-ref in GoogleSignIn(GIDAuthStateMigration_bdf842e92d17b12b5f020e0e721bd017.o)
(maybe you meant: _OBJC_CLASS_$_GTMAppAuthFetcherAuthorizationWithEMMSupport, _OBJC_CLASS_$_GTMAppAuthFetcherAuthorizationEMMChainedDelegate )
"_OBJC_METACLASS_$_GTMAppAuthFetcherAuthorization", referenced from:
_OBJC_METACLASS_$_GTMAppAuthFetcherAuthorizationWithEMMSupport in GoogleSignIn(GIDAuthentication_7b83cc27af8929ec7e4c9760d73a0f31.o)
(maybe you meant: _OBJC_METACLASS_$_GTMAppAuthFetcherAuthorizationWithEMMSupport, _OBJC_METACLASS_$_GTMAppAuthFetcherAuthorizationEMMChainedDelegate )
"_OBJC_CLASS_$_OIDIDToken", referenced from:
objc-class-ref in GoogleSignIn(GIDGoogleUser_2bdd4a676c033bc6ca21970e75d9159c.o)
objc-class-ref in GoogleSignIn(GIDAuthentication_7b83cc27af8929ec7e4c9760d73a0f31.o)
objc-class-ref in GoogleSignIn(GIDSignIn_f05654be6d1b2af59ab6df426a0c4eb9.o)
"_OBJC_CLASS_$_OIDServiceConfiguration", referenced from:
objc-class-ref in GoogleSignIn(GIDSignIn_f05654be6d1b2af59ab6df426a0c4eb9.o)
"_OBJC_CLASS_$_FIRApp", referenced from:
objc-class-ref in AppDelegate.o
"_RCTRegisterModule", referenced from:
+[SignWithApple load] in SignWithApple.o
"_OBJC_CLASS_$_RNCPushNotificationIOS", referenced from:
objc-class-ref in AppDelegate.o
"_OBJC_CLASS_$_RCTConvert", referenced from:
__OBJC_$_CATEGORY_RCTConvert_$_GIDSignInButtonStyle in AppDelegate.o
__OBJC_$_CATEGORY_RCTConvert_$_GIDSignInButtonColorScheme in AppDelegate.o
"_OIDOAuthTokenErrorDomain", referenced from:
___46-[GIDAuthentication refreshTokensWithHandler:]_block_invoke in GoogleSignIn(GIDAuthentication_7b83cc27af8929ec7e4c9760d73a0f31.o)
"_OBJC_CLASS_$_FlipperKitNetworkPlugin", referenced from:
objc-class-ref in AppDelegate.o
"_OBJC_CLASS_$_FlipperKitReactPlugin", referenced from:
objc-class-ref in AppDelegate.o
"_OBJC_CLASS_$_RCTViewManager", referenced from:
_OBJC_CLASS_$_SignWithApple in SignWithApple.o
"_OBJC_CLASS_$_FlipperClient", referenced from:
objc-class-ref in AppDelegate.o
"_OBJC_CLASS_$_GTMOAuth2KeychainCompatibility", referenced from:
objc-class-ref in GoogleSignIn(GIDAuthStateMigration_bdf842e92d17b12b5f020e0e721bd017.o)
"_OBJC_CLASS_$_RCTLinkingManager", referenced from:
objc-class-ref in AppDelegate.o
"_OBJC_CLASS_$_FKUserDefaultsPlugin", referenced from:
objc-class-ref in AppDelegate.o
"_OBJC_CLASS_$_GTMKeychain", referenced from:
objc-class-ref in GoogleSignIn(GIDAuthStateMigration_bdf842e92d17b12b5f020e0e721bd017.o)
"_OBJC_CLASS_$_RCTBridge", referenced from:
objc-class-ref in AppDelegate.o
"_OBJC_CLASS_$_RCTRootView", referenced from:
objc-class-ref in AppDelegate.o
"_OBJC_METACLASS_$_RCTViewManager", referenced from:
_OBJC_METACLASS_$_SignWithApple in SignWithApple.o
"_OBJC_CLASS_$_FlipperKitLayoutPlugin", referenced from:
objc-class-ref in AppDelegate.o
"_OBJC_CLASS_$_SKIOSNetworkAdapter", referenced from:
objc-class-ref in AppDelegate.o
"_OBJC_CLASS_$_RCTBundleURLProvider", referenced from:
objc-class-ref in AppDelegate.o
"_RCTConvertEnumValue", referenced from:
+[RCTConvert(GIDSignInButtonStyle) GIDSignInButtonStyle:] in AppDelegate.o
+[RCTConvert(GIDSignInButtonColorScheme) GIDSignInButtonColorScheme:] in AppDelegate.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Build failed 2022/5/23, 14:06 140.1 seconds
Doing this helped me solve this problem:
Modify the Build Settings -> Excluded Architectures option, add the Any iOS Simulator SDK option, and set the value to arm64.As shown in the figure:
and add the following code in Podfile:
post_install do |installer|
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings['EXCLUDED_ARCHS[sdk=iphonesimulator*]'] = "arm64"
end
end
end
This problem I'm having seems to be caused by M1. https://juejin.cn/post/7037037120158269448
You can view these links maybe they can help:
https://github.com/facebook/react-native/issues/27166
xCode Cocoapods build fails "Undefined symbols for architecture x86_64"
Although what helped me was removing these values from the library search paths on react-native 0.64.2
Xcode -> Build Settings -> Search Paths -> Library Search Paths
"$(TOOLCHAIN_DIR)/usr/lib/swift-5.0/$(PLATFORM_NAME)"
"$(TOOLCHAIN_DIR)/usr/lib/swift/$(PLATFORM_NAME)"
Also cleaning the project and xcode derived data can help also
rm -rf ~/Library/Developer/Xcode/DerivedData (clean derived data)
CMD + K (Clean Project from xcode)
I just had to do :
rm -rf ~/Library/Developer/Xcode/DerivedData/*
and pod install (because a try pod deintegrate before)
and restart metro bundler.
I hope this will help you
I had this problem when I was initializing react-native project.
I'm using M1 Ventura 13.1.
https://github.com/facebook/react-native/issues/35053#issuecomment-1324612311
https://fek.io/blog/how-to-set-up-react-native-on-m-1-mac-2022-edition
Following these worked perfectly on initiating a react-native project!
These include specific insturctions on ruby installation(using rbenv) and using lts node, etc.
To include the details,
watchman, cocoapods are installed with homebrew.
ruby is installed with rbenv and after that, the version is stored in ~/.ruby-version

Linking error when building OpenGL app on Mac with command line

I am new to building command line on Mac. While working on a cross-platform app using OpenGL, IMGui, and GLFW, I keep getting linking errors:
Undefined symbols for architecture x86_64:
"__glfwCreateContextEGL", referenced from:
__glfwPlatformCreateWindow in libGLFW.a(cocoa_window.o)
"__glfwCreateContextNSGL", referenced from:
__glfwPlatformCreateWindow in libGLFW.a(cocoa_window.o)
"__glfwCreateContextOSMesa", referenced from:
__glfwPlatformCreateWindow in libGLFW.a(cocoa_window.o)
"__glfwInitEGL", referenced from:
__glfwPlatformCreateWindow in libGLFW.a(cocoa_window.o)
"__glfwInitNSGL", referenced from:
__glfwPlatformCreateWindow in libGLFW.a(cocoa_window.o)
"__glfwInitOSMesa", referenced from:
__glfwPlatformCreateWindow in libGLFW.a(cocoa_window.o)
"__glfwPlatformCreateMutex", referenced from:
_glfwInit in libGLFW.a(init.o)
"__glfwPlatformCreateTls", referenced from:
_glfwInit in libGLFW.a(init.o)
"__glfwPlatformDestroyMutex", referenced from:
_terminate in libGLFW.a(init.o)
"__glfwPlatformDestroyTls", referenced from:
_terminate in libGLFW.a(init.o)
"__glfwPlatformGetTls", referenced from:
_glfwDestroyWindow in libGLFW.a(window.o)
__glfwRefreshContextAttribs in libGLFW.a(context.o)
_glfwMakeContextCurrent in libGLFW.a(context.o)
_glfwExtensionSupported in libGLFW.a(context.o)
_glfwGetCurrentContext in libGLFW.a(context.o)
_glfwSwapInterval in libGLFW.a(context.o)
_glfwGetProcAddress in libGLFW.a(context.o)
...
"__glfwPlatformLockMutex", referenced from:
__glfwInputError in libGLFW.a(init.o)
"__glfwPlatformSetTls", referenced from:
__glfwInputError in libGLFW.a(init.o)
_glfwInit in libGLFW.a(init.o)
"__glfwPlatformUnlockMutex", referenced from:
__glfwInputError in libGLFW.a(init.o)
"__glfwTerminateNSGL", referenced from:
__glfwPlatformTerminate in libGLFW.a(cocoa_init.o)
"__glfwUpdateDisplayLinkDisplayNSGL", referenced from:
-[GLFWWindowDelegate windowDidChangeScreen:] in libGLFW.a(cocoa_window.o)
I am linking to the Cocoa, CoreVideo, and IOKit frameworks. Any idea what I'm missing?
Hello might have found your error while doing something similar you forgot to link it to a few libs that are required...
"g++ -o test main.c libGLEW.a libglfw3.a -framework opengl -framework Cocoa -framework IOKit"
source: https://web.eecs.umich.edu/~sugih/courses/eecs487/glfw-howto/
I had a similar issue to you when trying to build GLFW on my own. It seems as though when building GLFW you're not including all files needed.
The following macOS-specific files are needed in the current version of GLFW when building:
src/cocoa_init.m
src/cocoa_joystick.m
src/cocoa_monitor.m
src/cocoa_window.m
src/cocoa_time.c
src/posix_thread.c
src/nsgl_context.m
src/egl_context.c
src/osmesa_context.c
src/posix_module.c
For you specifically, make sure egl_context.c,
nsgl_context.m, and
posix_thread.c are included.

Linking error - Undefined symbols for architecture x86_64 on OSX

The following is returned when trying to compile part of a project under OSX:
gcc -g -pipe -L/Projects/export buf_test.o buf.o -framework CoreFoundation -o buf_test
Undefined symbols for architecture x86_64:
"___assert_rtn", referenced from:
_init in buf.o
_get in buf.o
_put in buf.o
"___sprintf_chk", referenced from:
_test in buf_test.o
"___strcpy_chk", referenced from:
_test_data_copy in buf_test.o
___inline_strcpy_chk in buf_test.o
"_exit", referenced from:
start in crt1.10.6.o
"_printf", referenced from:
_test in buf_test.o
"_puts", referenced from:
_test in buf_test.o
ld: symbol(s) not found for architecture x86_64
collect2: ld returned 1 exit status
Help would be much appreciated!
Turns out it was a library naming conflict with the standard libraries -- I had a library called libSystem.a in /Projects/export which was masking libSystem.dylib from being found.

Builderror after upgrading to xcode4.3.2 from xcode3.2

We have upgraded our xcode to 4.3 recently.
I am into testing, I need to duplicate target file and integrate FoneMonkey files and execute the target.
I did below changes to orginal target to get it executed successfully:
updated framework serch paths
"$(DEVELOPER_FRAMEWORKS_DIR)"
"$(SRCROOT)/../../Developer/Library/Frameworks"
"$(SRCROOT)"
updated Library search paths
"$(DEVELOPER_FRAMEWORKS_DIR)"
"$(SRCROOT)/../../Developer/Library/Frameworks"
"$(SRCROOT)"
"/users/ezprintsqa/FoneMonkey/lib"
executed below command
sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer
Now build gets executed successfully.
But the duplicate target with Fonemonkey files added gives below errors:
Ld "/Users/ezprintsqa/Library/Developer/Xcode/DerivedData/SnapCards-dtjqrhfvqueyhrbbgjgydberyqdm/Build/Products/Debug-iphonesimulator/SnapCards copy.app/SnapCards copy" normal i386
cd /Users/ezprintsqa/Documents/snapcards
setenv MACOSX_DEPLOYMENT_TARGET 10.6
setenv PATH "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch i386 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.1.sdk -L/Users/ezprintsqa/Library/Developer/Xcode/DerivedData/SnapCards-dtjqrhfvqueyhrbbgjgydberyqdm/Build/Products/Debug-iphonesimulator -L/Applications/Xcode.app/Contents/Developer/Library/Frameworks -L/Applications/Xcode.app/Contents/Developer/Library/Frameworks/CPlusTest.framework -L/Applications/Xcode.app/Contents/Developer/Library/Frameworks/DTPerformanceSession.framework -L/Applications/Xcode.app/Contents/Developer/Library/Frameworks/InterfaceBuilderKit.framework -L/
.
.
ld: warning: directory not found for option '-L/Users/ezprintsqa/Documents/snapcards/../../Developer/Library/Frameworks'
ld: warning: directory not found for option '-F/Users/ezprintsqa/Documents/snapcards/../../Developer/Library/Frameworks'
Undefined symbols for architecture i386:
"_SCNetworkReachabilitySetCallback", referenced from:
-[Reachability startNotifier] in Reachability.o
"_SCNetworkReachabilityScheduleWithRunLoop", referenced from:
-[Reachability startNotifier] in Reachability.o
"_SCNetworkReachabilityUnscheduleFromRunLoop", referenced from:
-[Reachability stopNotifier] in Reachability.o
"_SCNetworkReachabilityCreateWithName", referenced from:
+[Reachability reachabilityWithHostName:] in Reachability.o
"_SCNetworkReachabilityCreateWithAddress", referenced from:
+[Reachability reachabilityWithAddress:] in Reachability.o
"_SCNetworkReachabilityGetFlags", referenced from:
-[Reachability currentReachabilityStatus] in Reachability.o
-[Reachability isReachable] in Reachability.o
-[Reachability isConnectionRequired] in Reachability.o
-[Reachability isConnectionOnDemand] in Reachability.o
-[Reachability isInterventionRequired] in Reachability.o
-[Reachability isReachableViaWWAN] in Reachability.o
-[Reachability isReachableViaWiFi] in Reachability.o
...
"_OBJC_CLASS_$_SenTestSuite", referenced from:
objc-class-ref in libFoneMonkeyOCUnit.5.5b.a(FoneMonkey+OCUnit.o)
"_OBJC_CLASS_$_SenTestObserver", referenced from:
objc-class-ref in libFoneMonkeyOCUnit.5.5b.a(FoneMonkey+OCUnit.o)
"_OBJC_CLASS_$_SenTestLog", referenced from:
objc-class-ref in libFoneMonkeyOCUnit.5.5b.a(FoneMonkey+OCUnit.o)
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Can some one please help me with below issues:
The folder /Users/ezprintsqa/Library/Developer/ is not available now after upgrading to 4.3, but here this path is being configured (how can i change this)?
The _objc_class issues.
Thanks in Advance.
By removing SenTesting.framework from Xcode the issue was solved.

Resources