Failed to update auto layout status / Failed to render instance - objective-c

I try to run friend old app that written in objective c .
my friend develop this in Xcode 5 ,I try to run this app in 7.3.1 .
I get this error:
file:///Users/myname/Desktop/myapp%20test%201/after%20coca%20update/myapp/Base.lproj/Main.storyboard: error: IB Designables: Failed to update auto layout status: The agent raised a "NSInternalInconsistencyException" exception: Could not load NIB in bundle: 'NSBundle (loaded)' with name 'myappStepper'
file:///Users/myname/Desktop/myapp%20test%201/after%20coca%20update/myapp/Base.lproj/Main.storyboard: error: IB Designables: Failed to render instance of myappStepper: The agent threw an exception.

I solved this with change in myappStepper.xib "Open in" from Xcode 5.0 to Xcode 6.0.
Like the storyboard.xib.

Related

How to cache data on react-native-webview?

I want to create a simple webview app that shows the data of a website in an app. Is there a way to cache data in React Native Webview so that if there is no internet it shows cached screens.
I have tried react-native-offline-cache-webview but it does not work anymore. The app does not build and it shows the following error.
error Failed to install the app. Make sure you have the Android development environment set up: https://reactnative.dev/docs/environment-setup.
Error: Command failed: ./gradlew app:installDebug -PreactNativeDevServerPort=8081
FAILURE: Build failed with an exception.
* Where:
Build file '/Users/<user_name>/Projects/<app_name>/node_modules/react-native-offline-cache-webview/android/build.gradle' line: 43
* What went wrong:
A problem occurred evaluating project ':react-native-offline-cache-webview'.
> Could not find method compile() for arguments [com.facebook.react:react-native:+] on object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler.
Is there any other way to cache web pages in webview ?

IB Designables Failed to render and update auto layout status : dlopen(Cosmos.framework, 1): no suitable image found

I had successfully integrated 3rd party Library in Swift 3, Xcode Version 8.3.3,
CocoaPods: pod 'Cosmos', git: 'https://github.com/marketplacer/Cosmos.git', tag: '8.0.2'.
However, today it stopped working as expected. I get 3 errors in the issue navigator pane.
itemfile:///Users/bogdanbarbulescu/Desktop/Brev/Brev/Base.lproj/Main.storyboard:
error: IB Designables: Failed to update auto layout status:
dlopen(Cosmos.framework, 1): no suitable image found. Did find:
Cosmos.framework: required code signature missing for
'Cosmos.framework'
file:///Users/bogdanbarbulescu/Desktop/Brev/Brev/Base.lproj/Main.storyboard:
error: IB Designables: Failed to render and update auto layout status
for ManageFeedbackTableViewController (dmz-jg-rVK):
dlopen(Cosmos.framework, 1): no suitable image found. Did find:
Cosmos.framework: required code signature missing for
'Cosmos.framework'
file:///Users/bogdanbarbulescu/Desktop/Brev/Brev/Base.lproj/Main.storyboard:
error: IB Designables: Failed to render and update auto layout status
for DetailViewController (vPa-2A-MKV): dlopen(Cosmos.framework, 1): no
suitable image found. Did find: Cosmos.framework: required code
signature missing for 'Cosmos.framework'
Just add this code at the bottom of your pod file and re-install the pods. Should work.
post_install do |installer|
installer.pods_project.build_configurations.each do |config|
config.build_settings.delete('CODE_SIGNING_ALLOWED')
config.build_settings.delete('CODE_SIGNING_REQUIRED')
end
end

application which was running fine on ios-9.3 but when i run it on anydevice with IOS-10 onwards it crashes at random points

I have an application which was running fine on ios-9.3 but when i run it on anydevice with IOS-10 onwards it crashes at random points (crashes at different points every time)
I am working in objective-C with Xcode-8
Here is my error log - Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Could not load NIB in bundle: 'NSBundle (loaded)' with name '3pB-ff-s9x-view-jo5-RS-cHl' and directory 'Main.storyboardc''
Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Could not load NIB in bundle: 'NSBundle (loaded)' with name 'QuestionTableViewCell''
I tried a few things
- Checked the buildphase bundles resources (all xib file are present there)
- removed all the xib refernces and add them back to project
Its very frustarting please help me
I can not able to comment because of low rep. so writing here as an answer,
for exact solution you can search it in your storyboard by finding this "3pB-ff-s9x-view-jo5-RS-cHl", it will navigate you on exact on that control on storyboard which gives problem.
I hope it will helps you,
Thanks.

Build Failed Error in Titanium iOS project

I am using Titanium 3.1.3 GA version.
While include mobile app tracking module in project, getting "Build Failed" Error message.
Tried with new project also getting the same error.
[ERROR] : ** BUILD FAILED **
[ERROR] : The following build commands failed:
[ERROR] : Ld build/Debug-iphonesimulator/MoibleAppTrackingSample.app/MoibleAppTrackingSample normal i386
[ERROR] : (1 failure)
Please let me know about the issue and how could i fix this.
i386 means you were running on IOS, if yes then please paste the whole log here, so that we can figure it out actually. Because there may be many issue like sdk problem and all. i386 architecture is used for simulators.
Go in finder where this project is and then click BUILD/iphone/ then click on Xcode project. And from there try to build.
Are there any more details about in the log?
What module did you use? did you download it from the MarketPlace?
Try doing a Clean Project and try again.

Tableview doesn't load with error "Failed to load resource" on Android 2.2

My app works fine on the iPhone simulator. However, when I launch the Android 2.2 simulator, the app loads (all the tabs appear) but then it crashes before my TableView appears. Here's the error:
E/TiJSError( 269): (main) [644,1030] ----- Titanium Javascript Runtime Error -----
E/TiJSError( 269): (main) [1,1031] - In ti:/titanium.js:178,19
E/TiJSError( 269): (main) [0,1031] - Message: Uncaught Error: Failed to load resource, Java exception was thrown.
E/TiJSError( 269): (main) [1,1032] - Source: source = assets.readAsset(assetPath);
E/V8Exception( 269): Exception occurred at ti:/titanium.js:178: Uncaught Error: Failed to load resource, Java exception was thrown.
Does this have anything to do with memory? How can I fix this?
Thanks!!
I had a similar problem, and it turned out to be a memory issue.
Try inserting the following line into tiapp.xml:
<property name="ti.android.threadstacksize" type="int">32768</property>
Then clean the Android build folder and run the app again. I hope it works for you!