Hello fellow programmers,
I need to implement an exported Unity project to my native Swift project, so I followed the instructions of this tutorial:
https://github.com/blitzagency/ios-unity5
Unfortunately, the app crashes on app launch. I took a screenshot of my debug navigator:
I found this thread and followed every advice, but I cannot get it running. I would be very glad to see a working example:
https://forum.unity3d.com/threads/il2cpp-anyone-else-seeing-metadatacache-initialize-crashes-sometimes-when-the-game-starts.383145/
Thanks in advance.
I fixed it. The tutorial says to remove the references of all ".h files" in Unity/Classes/Native/, but I accidently deleted all of them.
Related
I have the following problem when trying to upload a small Unity game to the Apple Store.
In XCode, when I try to build, I get the following problem: "Framework not found FBLPromises". It is a problem that appears within the Target UnityFramework.
I'm using:
xcode v. 14.0.1
Unity 2020.3.25f1
The game has Admob installed.
I'm sorry I can't give more details. It's my first time trying to upload a game to the Apple Store and I still don't know XCode well.
Thanks for the help!
I have tried with the solutions presented in this forum, but none have worked for me.
I have reach experience in iOS native app development, My company have a unity app. Unity app developer exported the app for iOS and shared with me. I wanted to use my own created cocoa-pod library (which I have already using in my another iOS App) into Unity iOS project.
So Unity developer exported by File -> Build Settings, choose iOS and click Build, and now I am trying integrated pod (which is written in Swift 4.2) into Unity exported of iOS project.
I have taken medium post and many more reference, I have implemented the same as conclusive direction. Please look the attached screenshot below.
Reference - https://medium.com/ios-os-x-development/swift-and-objective-c-interoperability-2add8e6d6887
Please look the below screenshot for autogenerated file
Now when I am going to import this autogenerated header file to make connection between Objective C to Swift, then it is showing error as attached screenshot below
Please help me to resolve this issue. Thanks in advance.
One thing that has hung me up on this in the past is if you get an error during the initial build, then sometimes it doesn't create the -swift.h file and then subsequent builds also get an error that it's missing. Make sure you've deleted your derived data and cleaned the build folder to reset so everything gets built from the beginning.
I just updated to Xcode 8 (swift 3). Converted code, etc. No errors. A few build warnings...nothing that should be an issue.
When I run, with my IPHone connected, it crashed with a Thread 1: signal SIGABRT . It has hardly anything in the trace back other than
0_abort_with_payload
5 _dyld_start
and the console error is
dyld: could not load inserted library '/Developer/usr/lib/libBacktraceRecording.dylib' because no suitable image found. Did find:
/Developer/usr/lib/libBacktraceRecording.dylib: code signature invalid for '/Developer/usr/lib/libBacktraceRecording.dylib'
I had the same error since upgrading to xcode 8 (swift 3). The fix, for me, was to add an entry in info.plist
To add the permission information for the microphone:
Open info.plist
Add a new key called "Privacy - Microphone Usage Description"
Enter a string that describes why the app need microphone access
Just restart your iPhone device.
It mainly crash because you have to write some privacy thing in info.plist if you are using hardwares like camera, gallery etc. Check console for details and add everything you are using in info.plist of your app.
I had the same problem and finally figured it out. I created a Framework in Swift 3 that I then added to one of my other projects. This project that I added it to uses both Swift and Objective-C but is originally an Objective-C project.
For some reason the Framework made in Swift 3 was causing my app to crash immediately when running on an iPhone with that exact error. I deleted the Framework and now it is running fine.
Again, not sure why this happens because the Framework was working fine with the app before and works fine on simulators. So I guess it has to do with the Framework being created in the latest XCode with Swift 3. Maybe someone else can clear this up.
Hope this helps someone!
I am new in iOS app development. I have created an app in Sencha Touch 2. Then created a UIWebView in xcode and follow this blog to call sencha's index.html to xcode's UIWebView.
(Ref: http://www.innovaptor.com/blog/2013/05/06/create-a-sencha-touch-webapp-and-deploy-within-a-native-ios-app.html )
But when i am going to build the app, getting the following error.
Please help to solve this.
Thank You...
So I was just trying to create a simple instant messaging application on my Xcode 5.0.2. I downloaded the free beta SDK from c2call.com and I followed exactly what their video instructed. However once I tried to build, atleast a dozen issues popped up.
Heres the link to the tutorial:
http://www.youtube.com/watch?v=qyp_BFORvIk
One of the comments said that one possible reason might be because I need to set my Xcode 5 to default in build settings, but I'm not sure how. Does anyone know what I should do?