Closed DouglasHennrich closed 5 years ago
I used to work just fine before the latest updates of xcode, ti sdk and appc
Make sure to delete all old modules in ~/Library/Application Support/Titanium/modules/iphone/ti.googlemaps
to troubleshoot this. In addition, you may need to remove the TI_VERSION
macro in the module.xcconfig as it may clash with the new build-system (I did not hear of those issues so far).
I don't have this module under ~/Library/Application Support/Titanium/modules/iphone/
and there isn't an TI_VERSION
on module.xcconfig
already =/
// This flag is generated by the module build, do not change it.
TI_MODULE_VERSION=3.13.0
//
// PLACE ANY BUILD DEFINITIONS IN THIS FILE AND THEY WILL BE
// PICKED UP DURING THE APP BUILD FOR YOUR MODULE
//
// see the following webpage for instructions on the settings
// for this file:
// http://developer.apple.com/mac/library/documentation/DeveloperTools/Conceptual/XcodeBuildSystem/400-Build_Configurations/build_configs.html
//
FRAMEWORK_SEARCH_PATHS = $(SRCROOT)/../../modules/iphone/ti.googlemaps/$(TI_MODULE_VERSION)/platform ~/Library/Application\ Support/Titanium/modules/iphone/ti.googlemaps/$(TI_MODULE_VERSION)/platform
OTHER_LDFLAGS = $(inherited) -framework Accelerate -framework AVFoundation -framework CoreBluetooth -framework CoreData -framework CoreGraphics -framework CoreTelephony -framework CoreLocation -framework CoreText -framework GLKit -framework ImageIO -lobjc -lc++ -lz -licucore -framework OpenGLES -framework QuartzCore -framework Security -framework SystemConfiguration -framework GoogleMaps -framework GoogleMapsBase -framework GoogleMapsCore -framework GooglePlaces -framework GooglePlacePicker
WARNING_CFLAGS = -Wno-arc-performSelector-leaks
Try to remove the $(TI_MODULE_VERSION)
placeholder with the actual version directly. I will try to reproduce tomorrow!
Now I got this
[TRACE] ld: warning: directory not found for option '-F1.2.0/platform'
[TRACE] ld: warning: directory not found for option '-F~/Library/Application Support/Titanium/modules/iphone/ti.googlemaps/3.13.0/platform'
[TRACE] ld: warning: directory not found for option '-F1.2.0/platform'
[TRACE] ld: warning: directory not found for option '-F~/Library/Application Support/Titanium/modules/iphone/ti.googlemaps/3.13.0/platform'
[TRACE] ld: library not found for -lstdc++.6.0.9
[TRACE] clang: error
[TRACE] : linker command failed with exit code 1 (use -v to see invocation)
[ERROR] ** BUILD FAILED **
[ERROR] The following build commands failed:
[ERROR] Ld /Users/douglashennrich/Documents/Projects/Reset/Fleeter/Mobile/Main/build/iphone/build/Products/Debug-iphonesimulator/FleeterDev.app/FleeterDev normal x86_64
[ERROR] (1 failure)
~~Ohhh, yeah thats the real error: library not found for -lstdc++.6.0.9 The custom library was removed in Xcode 10 (breaking change). I will setup a PR and Ti.GoogleMaps v4.0.0 now. You can work around it by removing the flag.~~
This module does not use this flag, it must be caused by another module. The warnings could be improved, but that does not cause any issues. If you use Ti.Barcode, that's the issue. A new Xcode 10 compatible version was released last week already. Make sure none of your module include the -lstdc++.6.0.9
flag by doing a recursive search (e.g. in VSCode for -lstdc++.6.0.9
). Thx!
Thanks Hans, sorry to bug you around with the problem of another module! Indeed I use Ti.Barcode
@hansemannn thx. this resolved my issue as well.
I got this error and don't know why it keep searching for version
1.10.1
since I have set the latest version on my tiapp.xml<module platform="iphone" version="3.13.0">ti.googlemaps</module>
Xcode
Version 10.0 (10A255)
TiSDK7.4.0.GA
Appc-cli7.0.6