I am using Firebase Analytics on my app.
My app developed by Unity3d, so I used Firebase asset on my app.
Version is:
Unity 5.6.1f1
Xcode 8.2
Firebase Unity sdk 4.4.1
Firebase iOS sdk 4.8.2
Didn't use CocoaPods (It makes my build crash)
And I wrote this code:
private void Init()
{
FirebaseAnalytics.SetAnalyticsCollectionEnabled(true);
ALLogger.Info("[Firebase], set signup method to Facebook");
// Set the user's sign up method.
FirebaseAnalytics.SetUserProperty(FirebaseAnalytics.UserPropertySignUpMethod, "Facebook");
// Set the user ID.
// Max length: 36
var userName = ALFacebookConnector.UserId;
var strLength = Math.Min(36, userName.Length);
ALLogger.Info("[Firebase], set user name, origin:{0}, sliced:{1}", userName, userName.Substring(0, strLength));
FirebaseAnalytics.SetUserId(userName.Substring(0, strLength));
}
And I got this crash exception:
Fatal Exception: NSInvalidArgumentException
-[__NSCFString fira_UTF32Length]: unrecognized selector sent to instance 0x1708331e0
Fatal Exception: NSInvalidArgumentException
0 CoreFoundation 0x18abf91b8 __exceptionPreprocess
1 libobjc.A.dylib 0x18963055c objc_exception_throw
2 CoreFoundation 0x18ac00268 __methodDescriptionForSelector
3 CoreFoundation 0x18abfd270 ___forwarding___
4 CoreFoundation 0x18aaf680c _CF_forwarding_prep_0
5 AppExample 0x1023d8f0c +[FIRADataTypeValidator isValidString:minLength:maxLength:type:failureCode:]
6 AppExample 0x1023d9248 +[FIRADataTypeValidator isValidInternalName:maxLength:type:failureCode:]
7 AppExample 0x1023d9368 +[FIRADataTypeValidator isValidPublicName:maxLength:type:failureCode:]
8 AppExample 0x1023d9ad4 +[FIRADataTypeValidator isValidPublicUserAttributeName:failureCode:]
9 AppExample 0x102412268 +[FIRAnalytics setUserPropertyString:forName:]
10 AppExample 0x102477724 firebase::analytics::SetUserProperty(char const*, char const*)
11 AppExample 0x1005c1074 FirebaseAnalyticsPINVOKE_Firebase_Analytics_SetUserProperty_m4176997281 (il2cpp-codegen.h:708)
12 AppExample 0x1005c0fd4 FirebaseAnalytics_SetUserProperty_m3701051822 (Bulk_Firebase.Analytics_0.cpp:610)
Where is starting point for resolve this crash?
Related
I have a .net project that runs in windows with VS code with no issues.
I am trying to run the same project in Ubuntu 20.04.2 with VS code. Run trying to run it with F5, I get the errors:
CSC : error CS8032: An instance of analyzer System.Text.Json.SourceGeneration.JsonSourceGenerator cannot be created from /home/one/.nuget/packages/system.text.json/6.0.6/analyzers/dotnet/roslyn3.11/cs/System.Text.Json.SourceGeneration.dll : Could not load file or assembly 'Microsoft.CodeAnalysis, Version=3.11.0.0, Culture=neutral, PublicKeyToken=****'. The system cannot find the file specified.. [/home/one/github/fhir/Foo.Service/Foo.Service/Foo.Service.csproj]
CSC : error CS8032: An instance of analyzer System.Text.Json.SourceGeneration.JsonSourceGenerator cannot be created from /home/one/.nuget/packages/system.text.json/6.0.6/analyzers/dotnet/roslyn4.0/cs/System.Text.Json.SourceGeneration.dll : Could not load file or assembly 'Microsoft.CodeAnalysis, Version=3.11.0.0, Culture=neutral, PublicKeyToken=******'. The system cannot find the file specified.. [/home/one/github/fhir/Foo.Service/Foo.Service/Foo.Service.csproj]
I verified the files are on my system:
roslyn3.11
% lr /home/one/.nuget/packages/system.text.json/6.0.6/analyzers/dotnet/roslyn3.11/cs/System.Text.Json.SourceGeneration.dll
-rwxrw-r-- 1 one one 148K Aug 19 19:48 /home/one/.nuget/packages/system.text.json/6.0.6/analyzers/dotnet/roslyn3.11/cs/System.Text.Json.SourceGeneration.dll
roslyn4.0
one#work ~
% lr /home/one/.nuget/packages/system.text.json/6.0.6/analyzers/dotnet/roslyn4.0/cs/System.Text.Json.SourceGeneration.dll
-rwxrw-r-- 1 one one 164K Aug 19 19:48 /home/one/.nuget/packages/system.text.json/6.0.6/analyzers/dotnet/roslyn4.0/cs/System.Text.Json.SourceGeneration.dll
csproj
one#work ~
% lr /home/one/github/fhir/Foo.Service/Foo.Service/Foo.Service.csproj
-rw-rw-r-- 1 one one 1.8K Nov 10 16:59 /home/one/github/fhir/Foo.Service/Foo.Service/Foo.Service.csproj
It looks like "Microsoft.CodeAnalysis" was missing. So, I installed it with nuget in VS code. I added 'nuget: add package' in VS code to install 'Microsoft.CodeAnalaysis' version 3.11.0.
I have verified it successfully lives on my system:
one#work ...packages/microsoft.codeanalysis/3.11.0
% pwd
/home/one/.nuget/packages/microsoft.codeanalysis/3.11.0
one#work ...packages/microsoft.codeanalysis/3.11.0
% lr
total 80K
drwxrwxr-x 2 one one 4.0K Nov 14 10:08 .
drwxrwxr-x 4 one one 4.0K Nov 14 10:08 ..
-rw-rw-r-- 1 one one 178 Nov 14 10:08 .nupkg.metadata
-rwxrw-r-- 1 one one 19K Aug 10 2021 .signature.p7s
-rwxrw-r-- 1 one one 6.9K Apr 30 2021 Icon.png
-rwxrw-r-- 1 one one 2.2K Aug 3 2021 ThirdPartyNotices.rtf
-rw-rw-r-- 1 one one 28K Nov 14 10:08 microsoft.codeanalysis.3.11.0.nupkg
-rw-rw-r-- 1 one one 88 Nov 14 10:08 microsoft.codeanalysis.3.11.0.nupkg.sha512
-rwxrw-r-- 1 one one 2.4K Aug 3 2021 microsoft.codeanalysis.nuspec
I still get the errors mentioned above.
After updating the UWP app, I get many crash from the different sections of the app
STOWED_EXCEPTION_Microsoft.Data.Sqlite.SqliteException_80131500***APP-NAME***.dll!Microsoft::Data::Sqlite::SqliteCommand.ExecuteReader
Which did not happend in previous version, I also did not change the database access code section nor updated/reinstalled the EF Sqlite nugget package.
Here are Stacktrace i have received from users:
Thanks
Frame Image Function Offset
0 Microsoft.Data.Sqlite.dll Microsoft::Data::Sqlite::Interop::MarshalEx.ThrowExceptionForRC 0x0000000000000067
1 Microsoft.Data.Sqlite.dll Microsoft::Data::Sqlite::SqliteCommand.ExecuteReader 0x000000000000012F
2 Microsoft.Data.Sqlite.dll Microsoft::Data::Sqlite::SqliteCommand.ExecuteDbDataReader 0x000000000000000B
3 EntityFramework.Relational.dll Microsoft::Data::Entity::Storage::Internal::RelationalCommand::__c__DisplayClass17_0._ExecuteReader_b__0$catch$0 0x0000000000000013
4 SharedLibrary.dll System::Func$1_System::__Canon_.Invoke 0x0000000000000013
5 EntityFramework.Relational.dll Microsoft::Data::Entity::Storage::Internal::RelationalCommand.Execute_System.__Canon_$catch$0 0x00000000000000C1
6 EntityFramework.Relational.dll Microsoft::Data::Entity::Storage::Internal::RelationalCommand.ExecuteReader 0x0000000000000057
7 EntityFramework.Relational.dll Microsoft::Data::Entity::Query::Internal::QueryingEnumerable::Enumerator.MoveNext 0x000000000000008B
8 EntityFramework.Relational.dll Microsoft::Data::Entity::Query::QueryMethodProvider.GetResult_System.Int32_ 0x000000000000003D
9 APPNAME.McgInterop.dll _$ILCT$::$ILT$ReflectionDynamicInvoke$.InvokeRetOI_System.__Canon,System.Int32 0x0000000000000061
10 SharedLibrary.dll System::InvokeUtils.CallIHelperStaticCallWithInstantiation 0x0000000000000023
11 SharedLibrary.dll System::InvokeUtils.CallDynamicInvokeMethod 0x0000000000000119
12 System.Linq.Expressions System::Linq::Expressions::Interpreter::MethodInfoCallInstruction.InvokeWorker$catch$0 0x0000000000000017
13 System.Linq.Expressions System::Linq::Expressions::Interpreter::MethodInfoCallInstruction.Invoke 0x0000000000000009
14 System.Linq.Expressions System::Linq::Expressions::Interpreter::MethodInfoCallInstruction.Run 0x0000000000000065
15 System.Linq.Expressions System::Linq::Expressions::Interpreter::Interpreter.Run 0x0000000000000027
16 System.Linq.Expressions System::Linq::Expressions::Interpreter::LightLambda.Run 0x000000000000009B
17 SharedLibrary.dll System::Runtime::CompilerServices::ConditionalWeakTable$2_System::__Canon,System::__Canon_::CreateValueCallback.InvokeObjectArrayThunk 0x0000000000000037
18 EntityFramework.Core.dll Microsoft::Data::Entity::Query::Internal::QueryCompiler::__c__DisplayClass18_1$1_System::Int32_._CompileQuery_b__1$catch$0 0x0000000000000059
19 SharedLibrary.dll System::Comparison$1_System::__Canon_.Invoke 0x0000000000000013
20 EntityFramework.Core.dll Microsoft::Data::Entity::Query::Internal::QueryCompiler.Execute_System.Int32_ 0x000000000000003D
21 EntityFramework.Core.dll Microsoft::Data::Entity::Query::Internal::EntityQueryProvider.Execute_System.Int32_ 0x0000000000000033
22 System.Linq.Queryable.dll System::Linq::Queryable.Count_System.Int32_ 0x0000000000000121
23 APPNAME*.exe InstagramDownloader::pgHome._imgDownloader_b__15_4 0x0000000000000167
24 APPNAME*.McgInterop.dll Windows::System::Threading::TimerElapsedHandler.Invoke 0x000000000000000F
25 APPNAME*.McgInterop.dll McgInterop::ReverseComSharedStubs.Proc_ 0x0000000000000015
26 SharedLibrary.dll System::Runtime::ExceptionServices::ExceptionDispatchInfo.Throw 0x0000000000000019
27 System.Private.Threading System::Runtime::CompilerServices::TaskAwaiter.ThrowForNonSuccess 0x0000000000000053
28 System.Private.Threading System::Runtime::CompilerServices::TaskAwaiter.HandleNonSuccessAndDebuggerNotification 0x000000000000002D
29 System.Private.Threading System::Runtime::CompilerServices::TaskAwaiter.ValidateEnd 0x000000000000001D
30 System.Private.Threading System::Runtime::CompilerServices::TaskAwaiter.GetResult 0x000000000000000B
31 APPNAME*.exe InstagramDownloader::pgHome::_imgDownloader_d__15.MoveNext 0x00000000000015AF
32 SharedLibrary.dll System::Runtime::ExceptionServices::ExceptionDispatchInfo.Throw 0x0000000000000019
33 System.Private.Threading System::Runtime::CompilerServices::TaskAwaiter.ThrowForNonSuccess 0x0000000000000053
34 System.Private.Threading System::Runtime::CompilerServices::TaskAwaiter.HandleNonSuccessAndDebuggerNotification 0x000000000000002D
35 System.Private.Threading System::Runtime::CompilerServices::TaskAwaiter.ValidateEnd 0x000000000000001D
36 System.Private.Threading System::Runtime::CompilerServices::TaskAwaiter.GetResult 0x000000000000000B
37 APPNAME*.exe InstagramDownloader::pgHome::_btnDownload_Click_d__17.MoveNext 0x000000000000025D
38 APPNAME*.McgInterop.dll McgInterop::McgHelpers.ThrowFailed 0x0000000000000033
39 APPNAME*.McgInterop.dll McgInterop::ComCallHelpers.ComCall__HRESULT 0x00000000000000A9
40 APPNAME*.McgInterop.dll McgInterop::ForwardComSharedStubs.Func_TResult___System.__Canon,_System.__Canon_ 0x000000000000002B
41 APPNAME*.McgInterop.dll Windows::UI::Popups::MessageDialog.ShowAsync 0x0000000000000011
42 APPNAME*.exe InstagramDownloader::pgHome::_btnDownload_Click_d__17.MoveNext$catch$0 0x000000000000002F
43 SharedLibrary.dll System::Runtime::ExceptionServices::ExceptionDispatchInfo.Throw 0x0000000000000019
44 System.Private.Threading System::Runtime::CompilerServices::AsyncMethodBuilderCore::__c._ThrowAsync_b__9_0 0x0000000000000013
45 System.Private.Threading System::Threading::WinRTSynchronizationContext::Invoker.InvokeCore 0x0000000000000033
I suggest updating all SQLite-related packages on NuGet as well as the SQLite extension for Visual Studio (via Tools -> Extensions and Updates...)
Update
As I have learned, you use EntityFrameworkCore, which works only with Windows 10 Fall Creators Update and newer and will not work on older versions of UWP. To get rid of the issues, you will have to set your app to have minimum SDK version 16299 (FCU). If you need to support older versions, you will have to work without Entity Framework for now...
When I go to build and debug my iOS app, the simulator runs but I get an exception thrown and the simulator doesn't open. I'm using Visual Studio for Mac.
The error is:
Objective-C exception thrown.Name: NSInvalidArgumentException Reason:
Could not find a storyboard named 'Main' in bundle NSBundle
</Users/(Username
here)/Library/Developer/CoreSimulator/Devices/23E98CA3-FC40-4AA4-8AAD-
62A9FADE1118/data/Containers/Bundle/Application/715B09C7-FBF2-41E6-
8FCD-A6329DE9E758/(AppName Here).app> (loaded)
Native stack trace:
0 CoreFoundation 0x0000000108f31b0b
__exceptionPreprocess + 171
1 libobjc.A.dylib 0x0000000113b0e141
objc_exception_throw + 48
2 UIKit 0x000000010d005cfb +
[UIStoryboard storyboardWithName:bundle:] + 663
3 UIKit 0x000000010c84590d -
[UIApplication _loadMainStoryboardFileNamed:bundle:] + 72
4 UIKit 0x000000010c845e13 -
[UIApplication _loadMainInterfaceFile] + 260
5 UIKit 0x000000010c8444b6 -
[UIApplication _runWithMainScene:transitionContext:completion:] + 1407
6 UIKit 0x000000010c8417f3 -
[UIApplication workspaceDidEndTransaction:] + 182
7 FrontBoardServices 0x00000001168265f6
__FBSSERIALQUEUE_IS_CALLING_OUT_TO_A_BLOCK__ + 24
8 FrontBoardServices 0x000000011682646d -
[FBSSerialQueue _performNext] + 186
9 FrontBoardServices 0x00000001168267f6 -
[FBSSerialQueue _performNextFromRunLoopSource] + 45
10 CoreFoundation 0x0000000108ed7c01
__CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17
11 CoreFoundation 0x0000000108ebd0cf
__CFRunLoopDoSources0 + 527
12 CoreFoundation 0x0000000108ebc5ff
__CFRunLoopRun + 911
13 CoreFoundation 0x0000000108ebc016
CFRunLoopRunSpecific + 406
14 UIKit 0x000000010c84008f -
[UIApplication _run] + 468
15 UIKit 0x000000010c846134
UIApplicationMain + 159
16 ??? 0x000000012bee336c 0x0 +
5031998316
17 ??? 0x0000000128fc6abd 0x0 +
4982598333
Thanks,
Z
Edit:
Adding picture.
Info.plist
It seems like no main.storyboard can be found in your project.
Check this
if the Main Interface is Main , check if main.storyboard exsits in your project.
Or you can change it to other viewController.
Okay, the weirdest thing fixed it. I installed an older version of Xarmarin iOS that I got from this page: https://bugzilla.xamarin.com/show_bug.cgi?id=38206
Then when I opened Visual Studio it didn't detect it and had me update it. After updating it, my app was able to debug and the simulator worked fine! Very, very weird!
So I have a weird behavior with an iOS app I'm working on.
When I build my app in Release mode in Visual Studio, it works fine, deploys and runs OK on my iPhone.
Then I do the same thing using XBuild via command line, create the .ipa, deploy it to the same phone, and I get a crash right after the system splashscreen.
The same command line, executed on another mac, provides an .ipa that does not crash.
And the crash stacktrace provided by XCode does not help much:
Date/Time: 2017-06-19 11:22:01.279 +0200
Launch Time: 2017-06-19 11:21:59.536 +0200
OS Version: iOS 8.3 (12F70)
Report Version: 105
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Triggered by Thread: 0
Thread 0 name: tid_907 Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0 libsystem_kernel.dylib 0x0000000195e37270 __pthread_kill + 8
1 libsystem_pthread.dylib 0x0000000195ed516c pthread_kill + 108
2 libsystem_c.dylib 0x0000000195daeb14 abort + 108
3 MyApp 0x0000000101f9df20 mono_handle_native_crash (mini-exceptions.c:2615)
4 libsystem_platform.dylib 0x0000000195ecc958 _sigtramp + 64
5 libsystem_pthread.dylib 0x0000000195ed516c pthread_kill + 108
6 libsystem_c.dylib 0x0000000195daeb14 abort + 108
7 MyApp 0x00000001020b29c0 mono_log_write_asl (mono-log-darwin.c:40)
8 MyApp 0x00000001020c6188 monoeg_g_log (goutput.c:125)
9 MyApp 0x0000000101f68078 load_aot_module (aot-runtime.c:2060)
10 MyApp 0x0000000101fbd2fc mono_assembly_load_from_full (assembly.c:2099)
11 MyApp 0x0000000101fbce5c mono_assembly_open_a_lot (assembly.c:1779)
12 MyApp 0x00000001020d3168 assembly_preload_hook(_MonoAssemblyName*, char**, void*) (monotouch-main.m:137)
13 MyApp 0x0000000101fbef24 mono_assembly_load_corlib (assembly.c:1478)
14 MyApp 0x0000000101fdf248 mono_init_internal (domain.c:556)
15 MyApp 0x0000000101faa7e8 mini_init (mini-runtime.c:3680)
16 MyApp 0x00000001020d2e84 xamarin_main (monotouch-main.m:420)
17 MyApp 0x0000000101e29b78 main (main.m:245)
18 libdyld.dylib 0x0000000195d1ea04 start + 0
Thread 1 name: Dispatch queue: com.apple.libdispatch-manager
Thread 1:
0 libsystem_kernel.dylib 0x0000000195e1cc24 kevent64 + 8
1 libdispatch.dylib 0x0000000195d01e6c _dispatch_mgr_invoke + 272
2 libdispatch.dylib 0x0000000195cf3998 _dispatch_mgr_thread + 48
Thread 2 name: SGen worker
Thread 2:
0 libsystem_kernel.dylib 0x0000000195e37078 __psynch_cvwait + 8
1 libsystem_pthread.dylib 0x0000000195ed2f28 _pthread_cond_wait + 620
2 MyApp 0x00000001020a6228 thread_func (mono-os-mutex.h:146)
3 libsystem_pthread.dylib 0x0000000195ed3dc4 _pthread_body + 160
4 libsystem_pthread.dylib 0x0000000195ed3d20 _pthread_start + 156
5 libsystem_pthread.dylib 0x0000000195ed0ef4 thread_start + 0
Thread 0 crashed with ARM Thread State (64-bit):
x0: 0x0000000000000000 x1: 0x0000000000000000 x2: 0x0000000000000000 x3: 0x0000000000000036
x4: 0x000000016fd10c18 x5: 0x0000000000000000 x6: 0x0000000000000000 x7: 0x0000000000000fa0
x8: 0x0000000008000000 x9: 0x0000000004000000 x10: 0x0000000125d18000 x11: 0x0000000000000fff
x12: 0x0000000000000036 x13: 0x0000000125d14000 x14: 0x0000000000003fff x15: 0x0000000000003fff
x16: 0x0000000000000148 x17: 0x0000000000000010 x18: 0x0000000000000000 x19: 0x0000000000000006
x20: 0x0000000199d10310 x21: 0x0000000102170a64 x22: 0x0000000102170b16 x23: 0x000000016fd11678
x24: 0x0000000000000000 x25: 0x000000012680d080 x26: 0x0000000000000000 x27: 0x00000001023c70b0
x28: 0x00000001023c4c20 fp: 0x000000016fd11610 lr: 0x0000000195ed5170
sp: 0x000000016fd115f0 pc: 0x0000000195e37270 cpsr: 0x00000000
Any ideas, leads, possible origin would be highly appreciated !
I'm getting a weird error while trying to build my solution:
Exception while running ibtool: *** setObjectForKey: object cannot be nil (key: family)
I've googled it but there is no answers to this problem, just questions... Maybe worth mentioning is that I use Visual Studio Community 2015, I got the latest Xcode installed on my Mac and I have a updated iPhone 5s connected to the Mac. The OS on my Mac is El Capitan (10.11.4).
I think this problem mainly comes from my storyboard, at first I got this error when i tried to create a segue for a button between two views. I removed it and it worked as usual, now I got the same error later on in this project and it's not thanks to the segue.
If I exclude my storyboard, I can build the solution without any trouble, but I can't run the app on my iPhone since the storyboard is missing.
Anyone got a clue what the problem might be? Here are the error logs if necessary:
Severity Code Description Project File Line Source Suppression State
Error Exception while running ibtool: *** setObjectForKey: object cannot be nil (key: family)
Backtrace:
0 __exceptionPreprocess (in CoreFoundation)
1 objc_exception_throw (in libobjc.A.dylib)
2 -[__NSDictionaryM setObject:forKey:] (in CoreFoundation)
3 0x00000001181c6b41 (in IDEInterfaceBuilderCocoaTouchIntegration)
4 0x000000011814ee00 (in IDEInterfaceBuilderCocoaTouchIntegration)
5 0x000000011814d775 (in IDEInterfaceBuilderCocoaTouchIntegration)
6 0x000000011815f133 (in IDEInterfaceBuilderCocoaTouchIntegration)
7 0x000000011815eeac (in IDEInterfaceBuilderCocoaTouchIntegration)
8 0x000000011815ec66 (in IDEInterfaceBuilderCocoaTouchIntegration)
9 0x000000011815d934 (in IDEInterfaceBuilderCocoaTouchIntegration)
10 0x00000001181cb205 (in IDEInterfaceBuilderCocoaTouchIntegration)
11 0x00000001181ccce7 (in IDEInterfaceBuilderCocoaTouchIntegration)
12 -[IBDocumentCompiler invokeWhileUsingSourceAsIntermediateDocument:] (in IDEInterfaceBuilderKit)
13 -[IBDocumentCompiler invokeWithIntermediateDocumentOfTargetRuntime:alwaysCopy:block:] (in IDEInterfaceBuilderKit)
14 0x00000001181cc40a (in IDEInterfaceBuilderCocoaTouchIntegration)
15 0x00000001181b8b4d (in IDEInterfaceBuilderCocoaTouchIntegration)
16 -[IBStoryboardSceneCompilationGroup compilationResultsForCompilationUnits:options:returningErrors:] (in IDEInterfaceBuilderKit)
17 -[IBStoryboardDocumentCompiler compileUnitsFromCompilationGroups:filter:options:errors:] (in IDEInterfaceBuilderKit)
18 __78-[IBStoryboardDocumentCompiler compileContentsOfStoryboardWithOptions:errors:]_block_invoke (in IDEInterfaceBuilderKit)
19 IBWithAutoInvalidationPool (in IDEInterfaceBuilderKit)
20 -[IBStoryboardDocumentCompiler compileContentsOfStoryboardWithOptions:errors:] (in IDEInterfaceBuilderKit)
21 -[IBStoryboardDocumentCompiler internalCompileWithOptions:error:] (in IDEInterfaceBuilderKit)
22 0x00000001181b8f5e (in IDEInterfaceBuilderCocoaTouchIntegration)
23 __57-[IBStoryboardDocumentCompiler compileWithOptions:error:]_block_invoke (in IDEInterfaceBuilderKit)
24 -[IBDocumentCompiler invokeWithIntermediateDocument:] (in IDEInterfaceBuilderKit)
25 -[IBDocumentCompiler invokeWithIntermediateDocumentOfTargetRuntime:alwaysCopy:block:] (in IDEInterfaceBuilderKit)
26 -[IBStoryboardDocumentCompiler compileWithOptions:error:] (in IDEInterfaceBuilderKit)
27 +[IBDocumentCompiler compileContentsOfDocument:options:error:] (in IDEInterfaceBuilderKit)
28 __47-[IBDocument compiledPackageWithOptions:error:]_block_invoke (in IDEInterfaceBuilderKit)
29 -[IBDocumentAutolayoutManager ignoreAutolayoutStatusInvalidationDuring:] (in IDEInterfaceBuilderKit)
30 -[IBDocument compiledPackageWithOptions:error:] (in IDEInterfaceBuilderKit)
31 -[IBDocument compileAndWriteToPath:withOptions:error:] (in IDEInterfaceBuilderKit)
32 0x000000010ceb52da (in ibtoold)
33 0x000000010ceb10e7 (in ibtoold)
34 0x000000010ceb36ab (in ibtoold)
35 0x000000010ceb75c8 (in ibtoold)
36 0x000000010ceb7c5a (in ibtoold)
37 0x000000010ceb7b2d (in ibtoold)
38 0x000000010cea695b (in ibtoold)
39 0x000000010ceb71c3 (in ibtoold)
40 0x000000010ceb6274 (in ibtoold)
41 start (in libdyld.dylib) FridgeMe.iOS Build
Edit: I removed my second view controller and created a whole new one, this seems to have fixed the problem. Still not sure what was causing the problem, but if anyone knows I would really like to know if this happens agian.
Edit 2: The error came back as soon as I added a button on the other (new) view controller. It also refers to a run time error regarding the button not having a code behind (which I thought was created when you added the button on the storyboard). See the image.
Seems like the code for the button isn't generated properly.
I'm hoping this could be some help for other people who run into this issue. I'm still a bit stuck since I tried to manually copy everything regarding a button (changing it's name of course) from my working view controller to the new one, but I don't seem to get it to work.
I have added following to my ViewControllerCreate.designer.cs:
UIKit.UIButton BtnCreateAccount { get; set; }
void ReleaseDesignerOutlets()
{
if (BtnCreateAccount != null)
{
BtnCreateAccount.Dispose();
BtnCreateAccount = null;
}
}
Any ideas?
i got the same error.
After analyzing the code main.storyboard, I discovered that, in my case, the error jump if a button or other control has something like:
<fontDescription key="fontDescription" name="HelveticaNeue" pointSize="17" />
The family font is the problem, try change to
<fontDescription key="fontDescription" type="system" pointSize="17" /> or just delete de line.
Regards,
Marcelo
I am not sure the following code may be helpful for you.
internal class CustomUIView : UIView
{
internal CustomUIView(IntPtr value) :base(value)
{
}
}
Example:
UIView view = new CustomUIView(IntPtr.Zero);
Refer for more information here