Ionic Capacitor Deploy App on ios 13.3 device freeze splashscreen - ios

After I have run the latest update on my iphone and then want to deploy the app to my iphone using XCode, the app is started on the iphone and then the splash screen freezes. In XCode the following is displayed:
dyld: Library not loaded: #rpath/Capacitor.framework/Capacitor
Referenced from: /private/var/containers/Bundle/Application/BB53AC39-F58D-47D4-8860-273E51D8171B/App.app/App
Reason: no suitable image found. Did find:
/private/var/containers/Bundle/Application/BB53AC39-F58D-47D4-8860-273E51D8171B/App.app/Frameworks/Capacitor.framework/Capacitor: code signature invalid for '/private/var/containers/Bundle/Application/BB53AC39-F58D-47D4-8860-273E51D8171B/App.app/Frameworks/Capacitor.framework/Capacitor'
/private/var/containers/Bundle/Application/BB53AC39-F58D-47D4-8860-273E51D8171B/App.app/Frameworks/Capacitor.framework/Capacitor: code signature invalid for '/private/var/containers/Bundle/Application/BB53AC39-F58D-47D4-8860-273E51D8171B/App.app/Frameworks/Capacitor.framework/Capacitor'
/private/var/containers/Bundle/Application/BB53AC39-F58D-47D4-8860-273E51D8171B/App.app/Frameworks/Capacitor.framework/Capacitor: stat() failed with errno=1
/private/var/containers/Bundle/Application/BB53AC39-F58D-47D4-8860-273E51D8171B/App.app/Frameworks/Capacitor.framework/Capacitor: code signature invalid for '/private/var/containers/Bundle/Application/BB53AC39-F58D-47D4-8860-273E51D8171B/App.app/Frameworks/Capacitor.framework/Capacitor'
/private/var/containers/Bundle/Application/BB53AC39-F58D-47D4-8860-273E51D8171B/App.app/Frameworks/Capacitor.framework/Capacitor: stat() failed with errno=1
(lldb)
Many thanks in advance for your help!

This is a bug in Xcode or CocoaPods.
Free Apple dev accounts can't run apps on real devices if they use some CocoaPods frameworks (such as Capacitor, but it's affecting a lot of more).
So the only solution for now is to pay for an Apple dev account or use the simulator.
You can also try to remove use_frameworks! from ios/App/Podfile and run npx cap sync ios, but not sure if some other thing will break.

On the 24th of March Apple released iOS 13.4. This update includes a fix for the code signature issue! Please refer to the iOS 13.4 beta 3 for more information.

Related

Xamarin - Submitted App - Error occurred in thinning process

I submitted an app to the Appstore but it gets refused with this message:
While processing your iOS app, Appname, errors occurred in the app thinning process,
and your app couldn’t be thinned. If your app contains bitcode, bitcode processing
may have failed. Because of these errors, this build of your app will not be
able to be submitted for review or placed on the App Store.
For information that may help resolve this issue, see Tech Note 2432.
I added this to my cproj file in the build iphone section:
<MtouchEnableBitcode>false</MtouchEnableBitcode>
I also folowed this to solve the UIWebView problem. no idea if it is related:
https://devblogs.microsoft.com/xamarin/uiwebview-deprecation-xamarin-forms/
also updated all the packages to the latest, tried to put the minimum target OS to 9.0 tried to put enablebitcode to true, tried everything i was able to find online but without any result..
Nuget packages I use:
in the main project:
Newtonsoft.Json
RedCorner.Forms
SkiaSharp
sqlite-net-pcl
Xamarin.essentials
xamarin.ffimageloading
xamarin.ffimageloading.forms
xamarin.ffimageloading.svg
xamarin.ffimageloading.svg.forms
xamarin.ffimageloading.transformations
xamarin.forms
inside the IOS project:
sqlite-net-pcl
xamarin.essentials
xamarin.forms
These are all up to date... the app compiles and works great in the simulator..
Any idea on how I can sovle this frustrating problem?
UPDATE:
tried to package in Xamarin and then distribute in ad Hoc mode in xcode, and there it throws this error:
Failed to read property list: $ cd
/var/folders/pm/pwvftt8s1vbg4q6nj04blyym0000gn/T/
IDEDistributionOptionThinning.\~\~\~WPqMdz/Payload && /usr/bin/plutil -convert binary1 -o - -- GalShare.iOS.app/LaunchScreen.storyboardc/Info.plist
Status: pid 7230 exit 1
Stdout:
GalShare.iOS.app/LaunchScreen.storyboardc/Info.plist: Property List error:
Cannot parse a NULL or zero-length data / JSON error: No value.
Stderr:
The problem was that there was no valid image in the spashscreen.. adding an image fixed the problem

CSYMGenerator Can't Open XCode Project Run

I got
CSYMGenerator cannot be Opened because of a problem
message while running my project.
OS: High Sierra v10.13
XCode: 9.0
Termination Reason: DYLD, [0x1] Library missing
Application Specific Information: dyld: launch, loading dependent
libraries
Dyld Error Message: Library not loaded:
#rpath/CrashlyticsLanguageSupport.framework/Versions/A/CrashlyticsLanguageSupport
Referenced from:
/Applications/Fabric.app/Contents/XPCServices/CSYMGenerator.xpc/Contents/MacOS/CSYMGenerator
Reason: image not found
Crashlytics Version 3.8.3 (120)
Fabric Version 2.6.14 (1285)
I just deleted the Fabric app and this error went away.
According to a post here by Mike Bonnel who works at Google on Crashlytics at Google, Fabric app has not been used in years.
I just ran into the same problem. To get it to work I ran
rm -rf ~/Library/Caches/com.crashlytics.mac
AND I deleted the Fabric app off my computer.
This is not an ideal workaround, but at least I can build and run my app now. This is definitely not ideal, but the issue went away. I was using XCode 8.2.1 on the latest High Sierra.

Meteor ios-device: no suitable image found

I'm deploying a Meteor app on both android and ios.
meteor run android-device ios-device
The app starts properly on android, while on ios it gets stuck at the splashscreen, with the following exception:
dyld: Library not loaded: #rpath/libswiftCore.dylib
Referenced from:
/var/containers/Bundle/Application/31D76A91-102C-519E-A978-44C752705AF7/MyApp.app/MyApp
Reason: no suitable image found.
**Did find:**
/private/var/containers/Bundle/Application/31D76A91-102C-519E-A978-44C752705AF7/MyApp.app/Frameworks/libswiftCore.dylib: stat() failed with errno=1
It looks like it's looking in the wrong place.
What should I do to get this fixed? (I already tried to create a new project from scratch, clean the build, etc. but no luck)
It turned out to be a bug that Apple fixed in iOS 10.3.

SKMaps.framework: code object is not signed at all

.Frameworks/SKMaps.framework: invalid resource specification rule(s)
Command /usr/bin/codesign failed with exit code 1
The error is related to: code object is not signed at all.
The same error occurs with Swift SKMapsSwiftDemo. I'm using Xcode 6.3, OS X 10.10.3 and iOS 8.3, but I tried Xcode 6.1, OS X 10.9.5 and iOS 8.1.3 too.
Adding script as --deep doesn't resolve the issue. Code Sign On Copy activated for SKMaps.framework destination Frameworks.
How may I resolve the issue?
Sorry for answering, I can't comment yet. I'm getting the same error in my project since I cannot install SKMaps from Cocoapods with Swift frameworks mixed.
Installing the framework manually as they tell in their webpage throws the same error:
/Users/Gabri/Library/Developer/Xcode/DerivedData/HolaSwift-bwlblhyipzsnozbxivjiuizsnrjk/Build/Products/Debug-iphoneos/E-Bike.app/Frameworks/SKMaps.framework: invalid resource specification rule(s)
Command /usr/bin/codesign failed with exit code 1
I have to say that this error is only thrown when building the app to a real iOS device, not in the simulator.
I managed to solve this by installing this library with Cocoapods with pod 'ScoutMaps-iOS-SDK' and then import SKMaps/SKMaps.h header to my Objective-C bridging header.
Hope it helps

Ad-Hoc Deployment Crashing on Load

I'm attempting to distribute an iOS 7.1 app using HockeyApp. The app works perfectly well in XCode on development devices that are attached to the computer but the app crashes on load when running from an over-the-air install from Hockey.
Here's the crash log I'm getting. As you can see, it's something to do with XCTest which I assume should not be present in an adhoc build.
Dyld Error Message:
<Error>: Library not loaded: /Developer/Library/Frameworks/XCTest.framework/XCTest
<Error>: Referenced from: /private/var/mobile/Containers/Bundle/Application/5F261236-E8C6-4F8B-9380-34445DAA3474/MyApp.app/MyApp
Reason: image not found
Dyld Version: 353.5
I've made sure there are no references to XCTest in my application target, but I still receive this error. Have I missed something obvious?
Thanks
Turns out that XCTest was included in a rogue cocoapod. By removing this, the problem was solved.
Reason: image not found.
This seems to be that you have not copied some image in the bundle. Check all the images in the app and see that it is copied in bundle. May be you have just referenced it from some folder from MAC machine.

Resources