hansemannn / titanium-googlemaps

🗺 Use the Google Maps SDK in Titanium

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Build fail on new SDK 7.4.0.GA

DouglasHennrich opened this issue · comments

[TRACE] Ld /Users/douglashennrich/Documents/Projects/Reset/Fleeter/Mobile/Main/build/iphone/build/Products/Debug-iphonesimulator/FleeterDev.app/FleeterDev normal x86_64 (in target: FleeterDev)
[TRACE]     cd /Users/douglashennrich/Documents/Projects/Reset/Fleeter/Mobile/Main/build/iphone
[TRACE]     export IPHONEOS_DEPLOYMENT_TARGET=8.0
[TRACE]     /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -arch x86_64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.0.sdk -L/Users/douglashennrich/Documents/Projects/Reset/Fleeter/Mobile/Main/build/iphone/build/Products/Debug-iphonesimulator -L/Users/douglashennrich/Documents/Projects/Reset/Fleeter/Mobile/Main/build/iphone/lib -L/Users/douglashennrich/Documents/Projects/Reset/Fleeter/Mobile/Main/build/iphone/Classes/APSAnalytics -L/Users/douglashennrich/Documents/Projects/Reset/Fleeter/Mobile/Main/build/iphone/Classes/APSHTTPClient -L/Users/douglashennrich/Documents/Projects/Reset/Fleeter/Mobile/Main/modules/iphone/net.iamyellow.tiws/1.0.0 -L/Users/douglashennrich/Documents/Projects/Reset/Fleeter/Mobile/Main/modules/iphone/av.imageview/1.4.0 -L/Users/douglashennrich/Documents/Projects/Reset/Fleeter/Mobile/Main/modules/iphone/ti.imagefactory/1.3.0 -L/Users/douglashennrich/Documents/Projects/Reset/Fleeter/Mobile/Main/modules/iphone/ti.barcode/1.10.1 -L/Users/douglashennrich/Documents/Projects/Reset/Fleeter/Mobile/Main/modules/iphone/ti.googlemaps/1.10.1 -L/Users/douglashennrich/Documents/Projects/Reset/Fleeter/Mobile/Main/modules/iphone/dk.napp.drawer/2.1.0 -F/Users/douglashennrich/Documents/Projects/Reset/Fleeter/Mobile/Main/build/iphone/build/Products/Debug-iphonesimulator -F/Users/douglashennrich/Documents/Projects/Reset/Fleeter/Mobile/Main/build/iphone/../../modules/iphone/av.imageview/1.2.0 -F1.2.0/platform -F/Users/douglashennrich/Documents/Projects/Reset/Fleeter/Mobile/Main/build/iphone/../../modules/iphone/ti.googlemaps/1.10.1 -F3.13.0 -F2.1.0 -F1.10.1 -F3.13.0 -F2.1.0/platform -F~/Library/Application\ Support/Titanium/modules/iphone/ti.googlemaps/1.10.1 -F3.13.0 -F2.1.0 -F1.10.1 -F3.13.0 -F2.1.0/platform -F/Users/douglashennrich/Documents/Projects/Reset/Fleeter/Mobile/Main/build/iphone/../../modules/iphone/av.imageview/1.2.0 -F1.2.0/platform -F/Users/douglashennrich/Documents/Projects/Reset/Fleeter/Mobile/Main/build/iphone/../../modules/iphone/ti.googlemaps/1.10.1 -F3.13.0 -F2.1.0 -F1.10.1 -F3.13.0 -F2.1.0/platform -F~/Library/Application\ Support/Titanium/modules/iphone/ti.googlemaps/1.10.1 -F3.13.0 -F2.1.0 -F1.10.1 -F3.13.0 -F2.1.0/platform -F/Users/douglashennrich/Documents/Projects/Reset/Fleeter/Mobile/Main/modules/iphone/ti.googlemaps/1.10.1/platform -filelist /Users/douglashennrich/Documents/Projects/Reset/Fleeter/Mobile/Main/build/iphone/build/Intermediates/FleeterDev.build/Debug-iphonesimulator/FleeterDev.build/Objects-normal/x86_64/FleeterDev.LinkFileList -Xlinker -rpath -Xlinker @executable_path/Frameworks -mios-simulator-version-min=8.0 -dead_strip -Xlinker -object_path_lto -Xlinker /Users/douglashennrich/Documents/Projects/Reset/Fleeter/Mobile/Main/build/iphone/build/Intermediates/FleeterDev.build/Debug-iphonesimulator/FleeterDev.build/Objects-normal/x86_64/FleeterDev_lto.o -Xlinker -export_dynamic -Xlinker -no_deduplicate -Xlinker -objc_abi_version -Xlinker 2 -stdlib=libc++ -fobjc-link-runtime -ObjC -weak-lti_ios_profiler -weak-lti_ios_debugger -weak-lTiCore -framework Security -framework CFNetwork -framework Security -framework CFNetwork -lstdc++.6.0.9 -liconv -lstdc++.6.0.9 -liconv -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 -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 -framework QuartzCore -framework QuartzCore -Xlinker -sectcreate -Xlinker __TEXT -Xlinker __entitlements -Xlinker /Users/douglashennrich/Documents/Projects/Reset/Fleeter/Mobile/Main/build/iphone/build/Intermediates/FleeterDev.build/Debug-iphonesimulator/FleeterDev.build/FleeterDev.app-Simulated.xcent -framework CoreMedia -weak_framework CoreMotion -lAPSAnalytics -weak_framework CoreText -framework EventKit -framework EventKitUI -weak_framework Security -licucore -framework Foundation -weak_framework UIKit -framework CoreGraphics -weak_framework AddressBook -framework AddressBookUI -framework CFNetwork -framework CoreLocation -weak_framework MapKit -framework MessageUI -framework MobileCoreServices -framework OpenGLES -framework QuartzCore -framework SystemConfiguration -lsqlite3 -lz -framework AudioToolbox -weak_framework MediaPlayer -framework AVFoundation -lxml2 -lAPSHTTPClient -ltiverify -lnet.iamyellow.tiws -lav.imageview -lti.imagefactory -lti.barcode -lti.googlemaps -ldk.napp.drawer -framework GoogleMaps -framework GoogleMapsBase -framework GoogleMapsCore -framework GooglePlacePicker -framework GooglePlaces -Xlinker -dependency_info -Xlinker /Users/douglashennrich/Documents/Projects/Reset/Fleeter/Mobile/Main/build/iphone/build/Intermediates/FleeterDev.build/Debug-iphonesimulator/FleeterDev.build/Objects-normal/x86_64/FleeterDev_dependency_info.dat -o /Users/douglashennrich/Documents/Projects/Reset/Fleeter/Mobile/Main/build/iphone/build/Products/Debug-iphonesimulator/FleeterDev.app/FleeterDev
[TRACE] ld: warning: directory not found for option '-F1.2.0/platform'
[TRACE] ld: warning: directory not found for option '-F3.13.0'
[TRACE] ld: warning: directory not found for option '-F2.1.0'
[TRACE] ld: warning: directory not found for option '-F1.10.1'
[TRACE] ld: warning: directory not found for option '-F3.13.0'
[TRACE] ld: warning: 
[TRACE] directory not found for option '-F2.1.0/platform'
[TRACE] ld: warning: 
[TRACE] directory not found for option '-F~/Library/Application Support/Titanium/modules/iphone/ti.googlemaps/1.10.1'
[TRACE] ld: warning: directory not found for option '-F3.13.0'
[TRACE] ld: warning: 
[TRACE] directory not found for option '-F2.1.0'
[TRACE] ld: warning: directory not found for option '-F1.10.1'
[TRACE] ld: warning: 
[TRACE] directory not found for option '-F3.13.0'
[TRACE] ld: warning: directory not found for option '-F2.1.0/platform'
[TRACE] ld: warning: directory not found for option '-F1.2.0/platform'
[TRACE] ld: warning: directory not found for option '-F3.13.0'
[TRACE] ld: warning: directory not found for option '-F2.1.0'
[TRACE] ld: warning: directory not found for option '-F1.10.1'
[TRACE] ld: warning: directory not found for option '-F3.13.0'
[TRACE] ld: warning: directory not found for option '-F2.1.0/platform'
[TRACE] ld: warning: 
[TRACE] directory not found for option '-F~/Library/Application Support/Titanium/modules/iphone/ti.googlemaps/1.10.1'
[TRACE] ld: warning: 
[TRACE] directory not found for option '-F3.13.0'
[TRACE] ld: warning: directory not found for option '-F2.1.0'
[TRACE] ld: warning: 
[TRACE] directory not found for option '-F1.10.1'
[TRACE] ld: warning: 
[TRACE] directory not found for option '-F3.13.0'
[TRACE] ld: warning: directory not found for option '-F2.1.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)

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>
captura de tela 2018-09-26 as 13 15 58

Xcode Version 10.0 (10A255)
TiSDK 7.4.0.GA
Appc-cli 7.0.6

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.