Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot run --appify with SDK 8.0.X #554

Closed
miniman42 opened this issue May 16, 2019 · 12 comments
Closed

Cannot run --appify with SDK 8.0.X #554

miniman42 opened this issue May 16, 2019 · 12 comments

Comments

@miniman42
Copy link

Latest SDK's dont seem to work with Tishadow and appify. If trace is enabled we get

[TRACE] Undefined symbols for architecture x86_64:
[TRACE]   "_deflate", referenced from:
[TRACE]       _zipWriteInFileInZip in libti.compression.a(zip.o)
[TRACE]       _zipCloseFileInZipRaw in libti.compression.a(zip.o)
[TRACE]   "_deflateInit2_", referenced from:
[TRACE]       _zipOpenNewFileInZip3 in libti.compression.a(zip.o)
[TRACE]   "_deflateEnd", referenced from:
[TRACE]       _zipCloseFileInZipRaw in libti.compression.a(zip.o)
[TRACE]   "_inflateInit2_", referenced from:
[TRACE]       _unzOpenCurrentFile3 in libti.compression.a(unzip.o)
[TRACE]   "_inflateEnd", referenced from:
[TRACE]       _unzCloseCurrentFile in libti.compression.a(unzip.o)
[TRACE]   "_crc32", referenced from:
[TRACE]       -[TiCompressionZipArchive addFileToZip:newname:] in libti.compression.a(ZipArchive.o)
[TRACE]       _unzReadCurrentFile in libti.compression.a(unzip.o)
[TRACE]       _zipWriteInFileInZip in libti.compression.a(zip.o)
[TRACE]   "_inflate", referenced from:
[TRACE]       _unzReadCurrentFile in libti.compression.a(unzip.o)
[TRACE]   "_get_crc_table", referenced from:
[TRACE]       _unzOpenCurrentFile3 in libti.compression.a(unzip.o)
[TRACE]       _zipOpenNewFileInZip3 in libti.compression.a(zip.o)
[TRACE]   "_utf8_nextCharSafeBody", referenced from:
[TRACE]       -[SRWebSocket _innerPumpScanner] in libnet.iamyellow.tiws.a(SRWebSocket.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)```

Is this easily fixed? Any help would be much appreciated!

Thx.
@miniman42
Copy link
Author

@dbankier Is this possibly to do with the inclusion of the TiCore as a framework now in SDK 8.0.X?? Perhaps the wrapper project needs to be updated?

@miniman42
Copy link
Author

This looks similar... tidev/ti.compression#21

@dbankier
Copy link
Owner

dbankier commented May 19, 2019

Just a module update. Testing now and will push a new version soon.

Weird module issues...

@dbankier
Copy link
Owner

fixed.

@miniman42
Copy link
Author

Thanks @dbankier - Works in the Sim, but now has an issue with a real device...
appc ti build -p ios -T device --appify

[ERROR] 2019-05-20 13:49:51.930 xcodebuild[2235:15990] DTDeviceKit: deviceType from 00008006-001243C91EA2002E was NULL
[ERROR] 2019-05-20 13:49:51.930 xcodebuild[2235:15990] DTDeviceKit: deviceType from 00008006-001243C91EA2002E was NULL
[ERROR] 2019-05-20 13:49:51.932 xcodebuild[2235:15990] iPhoneSupport: 📱<DVTiOSDevice (0x7f80074ebac0), My-iPhoneX, iPhone, 12.2 (16E227), fca...f39> unable to mount DeveloperDiskImage (Error Domain=com.apple.dtdevicekit Code=601 "Could not find platform" UserInfo={NSLocalizedDescription=Could not find platform})
[ERROR] 2019-05-20 13:49:52.038 xcodebuild[2235:15988] [MT] DTDeviceKit: deviceType from 00008006-001243C91EA2002E was NULL
[ERROR] 2019-05-20 13:49:52.048 xcodebuild[2235:15988] [MT] DTDeviceKit: deviceType from 00008006-001243C91EA2002E was NULL
[ERROR] 2019-05-20 13:49:52.172 xcodebuild[2235:15988] [MT] DTDeviceKit: deviceType from 00008006-001243C91EA2002E was NULL
[ERROR] 2019-05-20 13:49:52.179 xcodebuild[2235:15988] [MT] DTDeviceKit: deviceType from 00008006-001243C91EA2002E was NULL
[ERROR] ** BUILD FAILED **
[ERROR] The following build commands failed:
[ERROR] CompileC /Users/me/Documents/Work/Stuff/workspaces/appcelerator/MyApp/build/appify/build/iphone/build/Intermediates/MyApp.build/Debug-iphoneos/MyApp.build/Objects-normal/armv7/MediaModule.o /Users/me/Documents/Work/Stuff/workspaces/appcelerator/MyApp/build/appify/build/iphone/Classes/MediaModule.m normal armv7 objective-c com.apple.compilers.llvm.clang.1_0.compiler
[ERROR] (1 failure)

@miniman42
Copy link
Author

Looks similar : tidev/ti.nfc#26

@dbankier
Copy link
Owner

Yep. I noticed that with 8.0.1.GA also. Looks like an issue with the SDK itself. If you don't need the media module than just comment out these lines (https://github.com/dbankier/TiShadow/blob/master/app/Resources/api/Includes.js#L70-L85) the moment or use a different SDK version

I think it needs to be raise with AppC

@miniman42
Copy link
Author

Hrm... I do need the videoplayer, so commenting is not gonna work for me. Also 8.0.1 is the first SDK to fix the many crashes we've experienced since 7.3/4... Any pointer as to why it why it's only an issue when using shadow? Not sure how to raise it with the Appc and actually make sense to them :)

@dbankier
Copy link
Owner

No idea. Does it build without ts? The build error is with the MediaModule.m which is part of the SDK...

@miniman42
Copy link
Author

Yeah it builds just fine without ts for sim and device - also builds fine with ts for the sim - Just does not work when targeting an attached device with ts

@dbankier
Copy link
Owner

Just released a new version that works around the issue.
Here is the jira issue if you are curious: https://jira.appcelerator.org/browse/AC-6261

@miniman42
Copy link
Author

Thanks @dbankier - workaround works like a charm for me. I'll keep an eye on the ticket as I maintain a custom SDK branch

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants