Fastlane upload to crashlytics fails with error fetching remote file - crashlytics

My Error :
Fastlane upload to crashlytics fails with the following error :
[12:59:37]: Error fetching remote file: Exit status of command 'unzip
'C:/Users/xxxx/Library/CrashlyticsAndroid/crashlytics-devtools.zip' -d
'C:/Users/xxxx/Library/CrashlyticsAndroid'' was 2 instead of 0.
Archive: C:/Users/xxxx/Library/CrashlyticsAndroid/crashlytics-devtools.zip
warning [C:/Users/xxxx/Library/CrashlyticsAndroid/crashlytics-devtools.zip]: 30829 extra bytes at beginning or within zipfile (attempting to process anyway)
file #1: bad zipfile offset (local header sig): 30829 (attempting to re-compensate)
inflating:
C:/Users/xxxx/Library/CrashlyticsAndroid/crashlytics_build.xml
error: invalid compressed data to inflate bad CRC 00000000 (should
be 313e1340)
file #2: bad zipfile offset (local header sig): 839 (attempting to re-compensate)
file #2: bad zipfile offset (local header sig): 839
file #3: bad zipfile offset (local header sig): 34909
Fastlane env : my fastlane environment is here https://github.com/fastlane/fastlane/issues/12161

fastlane is not officially supported on Windows (yet). My suggestion is to do this on macOS. (I also commented this on your GitHub issue).

Download the zip from here and extract where fastlane fails to unzip crashlytics-devtools.zip.
For me the path is C:/Users/{your-user}/Library/CrashlyticsAndroid/crashlytics-devtools.zip

Related

XCode: The file “[APP NAME].app” couldn’t be opened because there is no such file

For context, I am encountering this immediately after resolving this issue:
Xcode error: unable to create directory '/[PATH_TO_APP]/[APP_NAME].app' (in target '[TARGET]' from project '[PROJECT]')
Here is the full error details text (with redactions in [] for privacy):
Details
The file “[APP NAME].app” couldn’t be opened because there is no such file.
Domain: NSCocoaErrorDomain
Code: 260
Failure Reason: The file doesn’t exist.
User Info: {
NSFilePath = "/[APP NAME].app";
}
--
The operation couldn’t be completed. No such file or directory
Domain: NSPOSIXErrorDomain
Code: 2
Failure Reason: No such file or directory
--
System Information
macOS Version 10.15.5 (Build 19F101)
Xcode 11.5 (16139)
Running ls -l in the project folder shows the [APP NAME].app now present, but navigating to the same location and selecting the file in Finder shows a "crossed out circle" over the app's icon. Removing the file and building again results in the same thing. I've also tried renaming the project and restarting, etc, to no avail.
NSFilePath = "/[APP NAME].app" feels like a missing or misspelled environment variable.
If the build expects custom environment variable like $(MyBuildDir) to be defined, when it's not, then running a command with $(MyBuildDir)/[APP NAME].app would result in "/[APP NAME].app"
The same is true for if the environment variable misspelled. For example, using $(UBILD_DIR)/[APP NAME].app instead of BUILD_DIR would result in "/[APP NAME].app"

Xcode GoogleCast problem with CFBundleExecutable at Archieve App

Hello I'm Making a Sound App integrated with ChromeCast in Obj-C. I use ChromeCast 4.4.7 dynamic SDK.
I use the manual method adding the SDK, and everything works fine. The app Connects with Chromecast and sends info.
The problem is what I want to Achieve the Project, using the strip_unused_archs.sh joined with the SDK. I've got 6 errors.
I Paste them
The domain/default pair of (/Users/juanjocontreras/Library/Developer/Xcode/DerivedData/WMYA_Radio-fzjavmckasiwebglravdbxefwoel/Build/Intermediates.noindex/ArchiveIntermediates/WMYA/Info.plist, CFBundleExecutable) does not exist
Removing unused architectures from framework:
fatal error: lipo: can't open input file: /Users/juanjocontreras/Library/Developer/Xcode/DerivedData/WMYA_Radio-fzjavmckasiwebglravdbxefwoel/Build/Intermediates.noindex/ArchiveIntermediates/WMYA/ (No such file or directory)
fatal error: lipo: can't open input file: /Users/juanjocontreras/Library/Developer/Xcode/DerivedData/WMYA_Radio-fzjavmckasiwebglravdbxefwoel/Build/Intermediates.noindex/ArchiveIntermediates/WMYA/_armv7 (No such file or directory)
mv: rename /Users/juanjocontreras/Library/Developer/Xcode/DerivedData/WMYA_Radio-fzjavmckasiwebglravdbxefwoel/Build/Intermediates.noindex/ArchiveIntermediates/WMYA/_thinned to /Users/juanjocontreras/Library/Developer/Xcode/DerivedData/WMYA_Radio-fzjavmckasiwebglravdbxefwoel/Build/Intermediates.noindex/ArchiveIntermediates/WMYA/: No such file or directory
2020-05-18 16:11:30.130 defaults[10081:96863]
The domain/default pair of (Radio/InstallationBuildProductsLocation/Applications//Ibiza1Radio.app/Frameworks/GoogleCast.framework/Info.plist, CFBundleExecutable) does not exist
Removing unused architectures from framework:
fatal error: lipo: can't open input file: Radio/InstallationBuildProductsLocation/Applications//Ibiza1Radio.app/Frameworks/GoogleCast.framework/ (No such file or directory)
fatal error: lipo: can't open input file: Radio/InstallationBuildProductsLocation/Applications//Ibiza1Radio.app/Frameworks/GoogleCast.framework/_armv7 (No such file or directory)
mv: rename Radio/InstallationBuildProductsLocation/Applications//Ibiza1Radio.app/Frameworks/GoogleCast.framework/_thinned to Radio/InstallationBuildProductsLocation/Applications//Ibiza1Radio.app/Frameworks/GoogleCast.framework/: No such file or directory
Any idea of what can I do to Archive and publish the app?
Thnx to all of U

Errors Creating App Package (UWP, Appx) - fatal error CMF1106: failed to open input PDB file for reading

I'm getting errors when Creating App Packages for a UWP Win 10 application.
On my machine the error is:
C:\Users\Developer\.nuget\packages\nodatime\2.4.0\lib\netstandard2.0\NodaTime.pdb : fatal error CMF1106: failed to open input PDB file for reading (PDB error code = 11)3 input PDB file is not generated by /DEBUG:fastlinkW must read and agree to the Data Collection Policy at MSPDBCMF : fatal error CMF1000: internal error
The pdb file exists in the mentioned directory: C:\Users\Developer\.nuget\packages\nodatime\2.4.0\lib\netstandard2.0
On a hosted VSTS build the error message is even more cryptic:
C:\Users\VssAdministrator\.nuget\packages\nodatime\2.4.0\lib\netstandard2.0\NodaTime.pdb : fatal error CMF1106: failed to open input PDB file for reading (PDB error code = 11)3 input PDB file is not generated by /DEBUG:fastlinkW must read and agree to the Data Collection Policy at ??? before using /errorreport:send1 warning treated as error; the PDB file is intact# specified output filename is too long (exceeding 0 characters)
Note 1: On my machine the package is actaully successfully created but on the VSTS build the step fails as it detects the error in logs and stops.
Note 2: I'm pretty sure this is not NodaTime specific. This is about something else...
My msbuild switches are:
/p:AppxBundlePlatforms="$(BuildPlatform)"
/p:AppxPackageDir="$(Build.ArtifactStagingDirectory)\AppxPackages\"
/p:AppxBundle=Never
/p:UapAppxPackageBuildMode=StoreUpload
I am now trying with extra /p:DebugSymbols=false /p:DebugType=None, but even if it fails, I would like to understand and eliminate the 'fastlink' errors.
Explicitly setting DebugType to pdbonly worked in my case, but not sure if you need portable debug symbols or not, so this might not be an option for you.
<PropertyGroup>
<DebugType>pdbonly</DebugType>
</PropertyGroup>

PHP Fatal error: Class 'jsonserializable' not found in Unknown on line 0

Ubuntu 16.04
PHP 7.0.4
Phalcon 2.1.x
Zephir
$~: php -v
PHP Fatal error: Class 'jsonserializable' not found in Unknown on line 0
When add phalcon.so in php.ini
Somehow I found the answer on and old bug report here:
Segmentation fault after update to 2.1.x
The problem is that the phalcon extension is being loaded before the json extension, so I guess that you, as myself, added the extension=phalcon.so line in the main php.ini
What you have to do is add a file in /etc/php/7.0/mods-available called phalcon.ini with the line in it: extension=phalcon.so
Then you just go and make a softlink that points from /etc/php/7.0/cli/conf.d/50-phalcon.ini to that phalcon.ini file, (important to put a number higher than 20 so it gets loaded after the json extension) and that's it!
Repeat the process to any other configuration that you have for php (apache, nginx, etc).

Mobilefirst cli build failed : reading info.plist file 1-byte UTF-8

We have a mobilefirst 7.0 hybrid application project that includes iOS and android native environment.
We want to use mobile first cli 7.0 on windows 7 to build project and generate build-time resources after we checkout this project from git server.
And it fails when it began to parse info.plist of iOS project.
The error message below is what I got from mfcli:
[Error:
BUILD FAILED
D:\programs\IBM\MobileFirst-CLI7\mobilefirst-cli\node_modules\generator-worklight-server\lib\build.xml:135: The following error occurred while executing this line:
D:\programs\IBM\MobileFirst-CLI7\mobilefirst-cli\node_modules\generator-worklight-server\lib\build.xml:341: The following error occurred while executing this line:
D:\programs\IBM\MobileFirst-CLI7\mobilefirst-cli\node_modules\generator-worklight-server\lib\build.xml:351: The following error occurred while executing this line:
D:\programs\IBM\MobileFirst-CLI7\mobilefirst-cli\node_modules\generator-worklight-server\lib\build.xml:330: Failed building application: com.worklight.builder.exception.WorklightBuildException: com.worklight.builder.exception.WorklightBuildRuntimeException: Resource Manager - Problem reading info.plist file 1-byte UTF-8 �ǦC���L�Ħ줸�� 1�C Nested exception: 1-byte UTF-8 �ǦC���L�Ħ줸�� 1�C
Total time: 18 seconds
]
What does it mean "Resources Manager -Problem reading info.plist file 1-byte UTF-8"?
Our git local repository on windows 7 was set to core.autocrlf = true.
There are Traditional Chinese characters in info.plist file, therefore this issue could be related to character settings.
Use a .gitattributes file to control line endings (do not rely on core.autocrlf) and explicitly exclude plist and other binary files from line ending conversion.
For example:
* text=auto
*.plist binary
The MFP CLI does not change the encoding of files.
It sounds like the Git server - perhaps the fact that it is hosted on Windows - indeed affects the encoding of the files.
The files should be UTF-8.
After further more investigation, we found out that this issue is definitely related to mfcli.
Perhapes mfcli on windows does not accept non ascii code characters in Info.plist. We could fix this problem easily by applying Localized strings for info.plist file in ios project.