archive

XCode 4 Archiving Error: one or more PCH files were found, but they were invalid

本小妞迷上赌 提交于 2019-12-20 11:35:51
问题 Documenting an odd XCode 4 Error here for future reference: "one or more PCH files were found, but they were invalid" Cleaning does not fix the issue, you need to clean the Build Folder by holding down ALT and selecting Product from the menu. The "Clean" entry will now have changed to "Clean Build Folder" which will wipe the bad PCH duplicates and compile without errors. 回答1: I had to read this a few times to get what was going on. The original poster answered his own question. To fix: Clean

Programmatically extract tar.gz in a single step (on Windows with 7-Zip)

霸气de小男生 提交于 2019-12-20 09:27:48
问题 Problem: I would like to be able to extract tar.gz files in a single step. This makes my question almost identical to this one: Stack Overflow question for tar-gz. My question is almost the same, but not the same, because I would like to do this on windows using 7-Zip command-line (or something similar) inside a bat file or Ruby/Perl/Python script. Question: This seemingly simple task is proving to be more involved than the first appearance would make it out to be. Does anyone have a script

ejabberd 16.06 + mysql 5.5.50, message history is not saved

喜你入骨 提交于 2019-12-20 07:28:44
问题 I use ejabberd 16.06 + mysql 5.5.50, message history is not saved. My ejabberd.yml: ## MySQL server: odbc_type: mysql odbc_server: "freldo" odbc_port: 3306 odbc_database: "ejabberd" odbc_username: "ejabberd" odbc_password: "ejabberd" modules: ... mod_mam: db_type: odbc default: always for the formation of the database structure, I used: mysql.sql I get an error: @ejabberd_sql:check_error:1039 SQL query 'SELECT timestamp, xml, peer, kind, nick FROM (SELECT timestamp, xml, peer, kind, nick FROM

Archived macOS app launches with blank window

风格不统一 提交于 2019-12-20 07:23:51
问题 I have a macOS app with a ViewController that renames and resizes the app window, has several buttons, and a WKWebView that loads a default webpage on launch. The project itself is an .xcworkspace file, since it includes the CocoaPod SwiftSoup for HTML scraping. The app runs great in the simulator. When it launches, it looks like this: I want to run this app on my Mac outside of Xcode. I am not planning on releasing it to the App Store, it is just for my personal use. I archive the project

how to pipe an archive (zip) to an S3 bucket

流过昼夜 提交于 2019-12-20 05:30:43
问题 I’m a bit confused with how to proceed. I am using Archive ( node js module) as a means to write data to a zip file. Currently, I have my code working when I write to a file (local storage). var fs = require('fs'); var archiver = require('archiver'); var output = fs.createWriteStream(__dirname + '/example.zip'); var archive = archiver('zip', { zlib: { level: 9 } }); archive.pipe(output); archive.append(mybuffer, {name: ‘msg001.txt’}); I’d like to modify the code so that the archive target

How do I append files to a .tar archive in Java?

*爱你&永不变心* 提交于 2019-12-20 04:37:17
问题 I would like to create a tar archive in Java. I have files which are constantly being created and I'd like a worker thread to take a reference to those files from a queue and copy them into the archive. I tried using Apache Compression library's TarArchiveOutputStream to do this, but I do not wish to keep the archive open for the entire duration of the program (since unless i finalize the archive, it can become corrupted - so i'd rather append to it in batches), and I haven't found a good way

ar on an existing .a file?

落爺英雄遲暮 提交于 2019-12-20 02:35:06
问题 Essentially, what I want to do is this: gcc foo.c -o foo.o ar rcs foo.a foo.o gcc bar.c -o boo.o ar rcs bar.a bar.o foo.a I want to archive both an object and a static library into another static library. Unfortunately, the last command doesn't end up containing foo.o (it contains bar.o and foo.a), so when I get to the linking stage, the linker can't find the symbols from foo.o. Is there a way to do what I want here? I'm doing all of this out of make, so I'm looking for a solution that doesn

Mach O Link Error- linker command failed with exit code 1 (use -v to see invocation)

可紊 提交于 2019-12-19 18:55:26
问题 When I try building for archiving for my app in Xcode (version 4.5) I get an error that says: ld: file is universal (3 slices) but does not contain a(n) armv7s slice: /Users/[myrealname]/Downloads/[myappname]/BT_Objects/TwitterOAuth/SAOAuthTwitterEngine/libOAuth.a for architecture armv7s clang: error: linker command failed with exit code 1 (use -v to see invocation) It then says under it: (null): File is universal (3 slices) but does not contain a(n) armv7s slice: /Users/shakerite/Downloads

Open password protected ZIP in Android?

徘徊边缘 提交于 2019-12-19 11:19:51
问题 is there an library or a simple way how to open a password protected ZIP archive in Android? I know there are different types of ZIP encryption. I would like to open the most simple one, create in Unix with the zip -e command. The same file can be opened in Windows (which will ask for password). That should be the standard ZIP 2.0 encryption? How can I open it? I search for all alternatives but I didn't find any final solution. 回答1: I found a .jar library that works on Android and can

How do I connect a COPY (an archive, not a clone) of a git repository to its remote?

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-19 10:18:32
问题 I'd like to know to connect and sync a COPY (an archive, not a clone) of a git repo with its remote repo. Background: I have a local and remote repository. I zip up my local repository using git archive and then copy it to a server: $ git archive --format=tar HEAD | gzip > myarchive.tar.gz Question: After unzipping the archive on the server, how do I connect and sync the server's copy with the remote repository again? If I do this: $ git init $ git remote add origin git@github.com/myusername