I am having a web service which gives LZCompressed string in my iOS app. To decompress the LZ string I have tried the following solutions.
https://github.com/takagi-denki/lzstring-swift
https://github.com/TapMesh/LZCompression
Both are working for me when I am decompressing small strings. But when I am getting LZStrings with larger size both of these are not working. (The crash I faced is added in the github issues section. Also I have added the crash details in the screenshot)
Any better suggestion for LZString conversion from iOS project? Thanks in advance.
I did some changes in the code takagi-denki have published in GitHub and fixed the issue. The bug free code can access from here https://github.com/mohammedabdulbasithk/lz-string-swift
I have added submitted a PR to fix this issue for now.
For the time being while the PR is not approved, you can use a forked copy of the Package here.
SPM Package
Related
I am creating one project using Twilio framework for creating the conference room, I integrated framework manually as guided in Twilio documents link "https://www.twilio.com/docs/api/video/ios" its working fine able to create room and everything working fine but when trying to push the file to GitHub its stuck with compression error. it's not Github problem as I am able to push related files (View Controller changes) and also framework size is 153MB can this be an issue.
Screenshot attached with the error message
error message while pushing code
Twilio framework files
Edit I have also tried with git commond line. Problem is twilio exceeds GitHub's file size limit of 100.00 M Is there any other way I can add twilio framework or can I remove unwanted files and then just drag and drop required files?
I am using Xcode 8.3.3 and Gitbox and Twilio version1.x
Twilio developer evangelist here.
In the case where you can't use CocoaPods there is a file size issue. While there's nothing that can be done about this right now (sorry!) we are aware of the issue and want to fix it. I can't promise any timeline, but we are going to work on supporting Carthage, which should solve this for you.
I'll try to let you know when this support is released.
In case if anyone has same issue you can temporary add Twilio/video file in ignore files while pushing the code on Github and then while pull can manually add that file in Twilio framework file,
I know this is hectic and time-consuming but you will not be stuck and anyway, you don't want to push and store such big file in your repository. Just and the comments in the code so if another developer is working on the same branch can follow the same steps.
PS: Always use cocoa-pods instead of manual. I have to do it manually because of some other cocoa-pods lib was getting updated, #so many code changes and I had time constraints.
I have a slight issue when build my Xcode project, get tones of warning after update pod. It looks like this
Already search the whole site here but still no luck. it doesn't affect the project but it is quite annoying. Anyone could help?
It probably means their binary file has non-aligned pointer when they compile their code. In those cases the alignment basically defaults to 1 byte and hypothetically might impact performance.
After updating to Xcode 8.3 public release I am still seeing this error, so Google might need to compile their static library with different settings to make it go away.
Got this response from firebase support:
This is a known issue with Xcode 8.3 beta, so it might be a beta thing
and Xcode being extra verbose. It works well though with 8.2.1 so I
recommend temporarily use it to avoid the warnings or ignore the
warnings on 8.3 beta if it does not affect your app.
This has been fixed in Firebase 3.16.0 (Firebase Core 3.6 + Firebase Analytics 3.8.0)
guys, it is all fixed now. Tested it all myself on two projects. You got to go to the correct directory of your project so that your pod spec file is visible to your command line commands, run
pod update
and see it all fixed and working properly!
These problems are addressed, and likely fixed, with release 3.16.0.
I have a solution with a Xamarin.Ios library containing views and nibfiles. Furthermore the solution have a iphone app project(duh) with a reference to the library.
Earlier when compiled and executed the nibfiles where copied correctly into the application. If I found the app in the simulator and pushed show contents the nibfiles would be there.
However after updating to the newest 8.6 from xamarin the nibfiles are no longer copied, which results in the lovely nsinternalinconsistencyexception could not load nib in bundle error. The nibfiles are set as interfacedefinition and copy are set to "do not copy".
Do anyone have a suggestion to where to look?
Any help is highly appreciated
Update:
I added the fix as mentioned in the answer at it fixed half of my issue however for now i need to link view files from my library for them to be included in the app.
This is a know issue (been reported in Xamarin's bugzilla system). In XI 8.6.0 there are some conditions where the new, msbuild-based, build forgets to copy some files in the application bundle.
A workaround (or most cases) is to edit a .target file like described here.
The upcoming service release (8.6.1) is fixing this issue.
WE had our existing project code base restructured, wherein a Static Library was separated out to be its own repository and it was added to the project as a submodule.
However, one of the issue we're facing is, duplicate print entries of log messages (all NSLog messages).
Before we restructured our project, logging to console had been fine and usual.
I've tried to look into sysLog and ASL documentation but I couldn't figure out what could be the issue.
Has anyone faced such an issue before?
I suppose this information should suffice, but if you need any more information let me know. I'm counting on that someone might have faced similar issue and has some solution or weird fix to it.
Thanks in advance.
This happened to me (in 2020). Fixed by re-launching the Console app. Console got itself confused somehow.
I'm running the ARC conversion tool for the first time. I've followed the instructions and dealt with all of the issues/erros in my files that the conversion tool finds before it will actually run. I also have several third party libraries that I've told ARC to skip by unchecking them in the Targets to Convert dialog. After running the tool it shows me a report of all the changed files but no files have been changed. Next I save and try to build the project only to find that I have nearly 1000 build errors due to all the calls to retain and release in my project. It's my understanding that the conversion tool is supposed to remove all calls to retain, release, and autorelease but that isn't the case for me.
Has anybody encountered this problem before and if so how did you solve it? Or is it my responsibility to remove all retains & releases from my app? If so I'm not sure what the point of the conversion tool is. Please advise.
Thanks in advance
I am about to try this on my own rather large project, so I may be back with more questions, but I found this that might help:
http://meandmark.com/blog/2011/11/xcode-4-2-convert-to-arc-troubleshooting/
Are you using GIT repositories for your code? It may not be converting due to the snapshot issue described.
This works better in case you allow it to continue building if errors encountered (Preferences - General). However, not all files are changed or converted completely anyway. But a few regulars will do the dirty job.
In case anyone wants to copy and paste;
\[([\[\w\s\]]+) autorelease\]