[AC-5369] Build failed when using analytics pod
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | n/a |
Status | Resolved |
Resolution | Duplicate |
Resolution Date | 2017-11-14T15:44:20.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | Hyperloop |
Labels | n/a |
Reporter | Kristjan Brand |
Assignee | Shak Hossain |
Created | 2017-11-14T14:03:29.000+0000 |
Updated | 2017-11-15T07:10:46.000+0000 |
Description
Hey!
I ran into an issue when using Analytics pod version higher than 3.3.0. Starting from 3.4.0 it does not build and gives an CompileC error when trying to build.
Xcode version: 9.1
Titanium SDK: 6.3.0.GA
My Podfile looks like this:
This is required for CocoaPods 1.x
install! 'cocoapods',
:integrate_targets => false
platform :ios, '8.0'
target 'Testcase' do
pod 'Analytics', '3.6.7'
end
Code to initiate the module:
analytics = require('Analytics/SEGAnalytics');
analyticsConf = require('Analytics/SEGAnalyticsConfiguration');
var analyticsKey = '*****';
var conf = analyticsConf.configurationWithWriteKey(analyticsKey);
conf.recordScreenViews = false;
conf.trackApplicationLifecycleEvents = true;
conf.flushAt = 1;
analytics.setupWithConfiguration(conf);
Error from studio:
[ERROR] : ** BUILD FAILED **
[ERROR] : The following build commands failed:
[ERROR] : CompileC build/Intermediates/Starship\ Project\ Mercury.build/Debug-iphonesimulator/Starship\ Project\ Mercury.build/Objects-normal/x86_64/analytics.o /Users/kristjan/Documents/Appcelerator_Studio_Workspace/Starship\ Project\ Mercury/build/hyperloop/ios/js/analytics/analytics.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler
[ERROR] : Ld build/Products/Debug-iphonesimulator/Starship\ Project\ Mercury.app/Starship\ Project\ Mercury normal x86_64
[ERROR] : GenerateDSYMFile build/Products/Debug-iphonesimulator/Starship\ Project\ Mercury.app.dSYM build/Products/Debug-iphonesimulator/Starship\ Project\ Mercury.app/Starship\ Project\ Mercury
[ERROR] : (3 failures)
Any idea what could cause this? Segment analytics is a really good tool for analytics and 3.3.0 version has some unfixed memory leaks. I would really appreciate if the latest version could be made to work.
Let me know if there is any further information i could provide.
This issue was resolved as not reproducible. Please do not create new issues as the account may get blocked because of spam-detections. The old one was not reopened because the library update itself caused the issue. Unless there are no new infos regarding the changes that caused this issue, the initial issue cannot be reopened.
But it is reproducible. I gave all the information why this build fails. Go and try it please. I don't know what you mean with the "library update itself caused the issue". That is what hyperloop is doing? Taking a library and compiling it. But in this case it fails to do it. Meaning there is some piece of code what hyperloop is not able to compile meaning there is a bug somewhere. My last issue was ignored for way too long with the bug still being there. That is why i created a new one to draw attention to it again. Please take the 5 minutes and try to run this code and see that the compiling fails.