Titanium JIRA Archive
Appcelerator Modules (MOD)

[MOD-2365] iOS: Including ti.map causes build to error

GitHub Issuen/a
TypeStory
PriorityNone
StatusResolved
ResolutionDuplicate
Resolution Date2017-10-02T10:51:55.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsMap
Labelsn/a
ReporterEwan Harris
AssigneeHans Knöchel
Created2017-10-02T09:40:14.000+0000
Updated2017-10-02T10:51:56.000+0000

Description

Description

When building with ti.map@2.13.0 the build process fails with the below, full build log is attached.
[TRACE] Ld build/Products/Debug-iphonesimulator/ticreateapp.app/ticreateapp normal x86_64
[TRACE]     cd /Users/eharris/Documents/Appcelerator_Studio_Workspace/ticreateapp/build/iphone
[TRACE]     export IPHONEOS_DEPLOYMENT_TARGET=8.0
[TRACE]     export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/Users/eharris/.rvm/gems/ruby-2.2.5/bin:/Users/eharris/.rvm/gems/ruby-2.2.5@global/bin:/Users/eharris/.rvm/rubies/ruby-2.2.5/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/Frameworks/Mono.framework/Versions/Current/Commands:/Users/eharris/.rvm/bin:/Library/Java/JavaVirtualMachines/jdk1.8.0_111.jdk/Contents/Home/bin"
[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/iPhoneSimulator10.3.sdk -L/Users/eharris/Documents/Appcelerator_Studio_Workspace/ticreateapp/build/iphone/build/Products/Debug-iphonesimulator -L/Users/eharris/Documents/Appcelerator_Studio_Workspace/ticreateapp/build/iphone/lib -L/Users/eharris/Documents/Appcelerator_Studio_Workspace/ticreateapp/build/iphone/Classes/APSAnalytics -L/Users/eharris/Documents/Appcelerator_Studio_Workspace/ticreateapp/build/iphone/Classes/APSHTTPClient -L/Users/eharris/Library/Application\ Support/Titanium/modules/iphone/ti.map/2.13.0 -F/Users/eharris/Documents/Appcelerator_Studio_Workspace/ticreateapp/build/iphone/build/Products/Debug-iphonesimulator -filelist /Users/eharris/Documents/Appcelerator_Studio_Workspace/ticreateapp/build/iphone/build/Intermediates/ticreateapp.build/Debug-iphonesimulator/ticreateapp.build/Objects-normal/x86_64/ticreateapp.LinkFileList -mios-simulator-version-min=8.0 -dead_strip -Xlinker -object_path_lto -Xlinker /Users/eharris/Documents/Appcelerator_Studio_Workspace/ticreateapp/build/iphone/build/Intermediates/ticreateapp.build/Debug-iphonesimulator/ticreateapp.build/Objects-normal/x86_64/ticreateapp_lto.o -Xlinker -export_dynamic -Xlinker -no_deduplicate -Xlinker -objc_abi_version -Xlinker 2 -fobjc-link-runtime -stdlib=libc++ -ObjC -weak_framework MapKit -weak_framework MapKit -weak_framework JavaScriptCore -Xlinker -sectcreate -Xlinker __TEXT -Xlinker __entitlements -Xlinker /Users/eharris/Documents/Appcelerator_Studio_Workspace/ticreateapp/build/iphone/build/Intermediates/ticreateapp.build/Debug-iphonesimulator/ticreateapp.build/ticreateapp.app.xcent -weak_framework iAd -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 -lti.map -Xlinker -dependency_info -Xlinker /Users/eharris/Documents/Appcelerator_Studio_Workspace/ticreateapp/build/iphone/build/Intermediates/ticreateapp.build/Debug-iphonesimulator/ticreateapp.build/Objects-normal/x86_64/ticreateapp_dependency_info.dat -o /Users/eharris/Documents/Appcelerator_Studio_Workspace/ticreateapp/build/iphone/build/Products/Debug-iphonesimulator/ticreateapp.app/ticreateapp
[TRACE] Undefined symbols for architecture x86_64:
[TRACE]   "_OBJC_CLASS_$_MKClusterAnnotation", referenced from:
[TRACE]       objc-class-ref in libti.map.a(TiMapView.o)
[TRACE]   "_OBJC_METACLASS_$_MKMarkerAnnotationView", referenced from:
[TRACE]       _OBJC_METACLASS_$_TiMapMarkerAnnotationView in libti.map.a(TiMapMarkerAnnotationView.o)
[TRACE]   "_OBJC_CLASS_$_MKMarkerAnnotationView", referenced from:
[TRACE]       _OBJC_CLASS_$_TiMapMarkerAnnotationView in libti.map.a(TiMapMarkerAnnotationView.o)
[TRACE] ld: symbol(s) not found for architecture x86_64
[TRACE] clang: error: linker command failed with exit code 1 (use -v to see invocation)
[ERROR] ** BUILD FAILED **
[ERROR] The following build commands failed:
[ERROR]         Ld build/Products/Debug-iphonesimulator/ticreateapp.app/ticreateapp normal x86_64
[ERROR] (1 failure)

Steps to reproduce

Download ti.map 2.13.0 https://github.com/appcelerator-modules/ti.map/releases/tag/ios-2.13.0

Add to your tiapp.xml <module platform="ios">ti.map</module>

Build for simulator appc run -p ios

Actual

Build fails

Expected

Build should not fail

Attachments

FileDateSize
build_iphone.log2017-10-02T09:36:10.000+00001813395

Comments

  1. Hans Knöchel 2017-10-02

    Marking as Duplicate of TIMOB-25076 to reopen that one in order to keep the changelog clean.

JSON Source