I'm building an application with an expo, and I'm finding that I can't rely on Expo Go because it injects some configuration that breaks my app. I can build and run my app without Expo Go, but I can't figure out how to view the logs of the non-expo-go app.
Here's some code that does some logging:
const appId = Constants.manifest.facebookAppId;
console.log({ appId });
const permissions = ["public_profile", "email"];
await Facebook.initializeAsync({ appId, appName: "Tripvector" });
const results = await Facebook.logInWithReadPermissionsAsync({
permissions,
});
console.log({ results });
When I run my app through expo go, I see the output of appId and results.
Then, I built my application with expo build: ios, downloaded the tarball, extracted it, and installed the removed application into my simulator.
I opened up this newly installed application, and it seems to work generally, but I can't figure out how to view the logs of this application.
I've tried looking at the system logs in the simulator with cmd + /, but I only see the following:
May 21 11:28:56 forrestry syslogd[96118]: --- syslogd restarted ---
May 21 11:28:56 forrestry syslogd[96118]: Configuration Notice:
ASL Module "com.apple.contacts.ContactsAutocomplete" claims selected messages.
Those messages may not appear in standard system log files or in the ASL database.
May 21 11:28:56 forrestry syslogd[96118]: Configuration Notice:
ASL Module "com.apple.clouddocs" claims selected messages.
Those messages may not appear in standard system log files or in the ASL database.
May 22 08:57:02 forrestry syslogd[44981]: --- syslogd restarted ---
May 22 08:57:02 forrestry syslogd[44981]: Configuration Notice:
ASL Module "com.apple.contacts.ContactsAutocomplete" claims selected messages.
Those messages may not appear in standard system log files or in the ASL database.
May 22 08:57:02 forrestry syslogd[44981]: Configuration Notice:
ASL Module "com.apple.clouddocs" claims selected messages.
Those messages may not appear in standard system log files or in the ASL database.
I've also tried running tail -f ~/Library/Logs/CoreSimulator/15DF07B0-EF12-4228-BBB4-BE0EC3BB7F7D/system.log, but that gives the same result. I've also tried using the safari simulator feature, but that only shows Expo Go
Here's an image of my Safari > Develop feature menu (which doesn't embed because I'm new to StackOverflow)
How can I view the console.log output of an expo app that has been built with expo build and then installed into an iOS simulator?
Related
I am trying to build my Ionic App to support Android 12. It works fine upto Android 11, but is not supporting Android 12.
==Supported credentials to Android 11==
package.json
“cordova-android”: “^9.1.0”
build.gradle file:
defaultBuildToolsVersion=“29.0.2”
defaultMinSdkVersion=22
defaultTargetSdkVersion=30
defaultCompileSdkVersion=30
config.xml file:
preference name="android-targetSdkVersion" value="30"
==Tried increasing sdk to 31==
package.json file:
“cordova-android”: “^10.0.0”
build.gradle file:
defaultTargetSdkVersion=31
defaultCompileSdkVersion=31
config.xml file:
preference name="android-targetSdkVersion" value="31"
added android:exported=“true” in MainActivity in ..\platforms\android\app\src\main\AndroidManifest.xml
Error :
FCMPlugin: Support for Gradle v4 or lower is deprecated. Please upgrade to a newer version.WARNING:: Configuration ‘compile’ is obsolete and has been replaced with ‘implementation’ and ‘api’.
It will be removed in version 7.0 of the Android Gradle plugin.
For more information, see Add build dependencies | Android Developers.
WARNING:: Using flatDir should be avoided because it doesn’t support any meta-data formats.
Task :app:processDebugMainManifest FAILED
…\platforms\android\app\src\main\AndroidManifest.xml Error:
Apps targeting Android 12 and higher are required to specify an explicit value for android:exported when the corresponding component has an intent filter defined. See <activity> | Android Developers for details.
See http://g.co/androidstudio/manifest-merger for more information about the manifest merger.
FAILURE: Build failed with an exception.
What went wrong:
Execution failed for task ‘:app:processDebugMainManifest’.
Manifest merger failed : Apps targeting Android 12 and higher are required to specify an explicit value for android:exported when the corresponding component has an intent filter defined. See <activity> | Android Developers for details.
Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
Get more help at https://help.gradle.org
Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.
You can use ‘–warning-mode all’ to show the individual deprecation warnings and determine if they come from your own scripts or plugins.
See Command-Line Interface
BUILD FAILED in 3s
15 actionable tasks: 1 executed, 14 up-to-date
Command failed with exit code 1: …\platforms\android\gradlew cdvBuildDebug -b …\platforms\android\build.gradle
[ERROR] An error occurred while running subprocess cordova.
cordova.cmd build android exited with exit code 1.
Re-running this command with the --verbose flag may provide more information.
I have tried all forums and posts, nothing seem to works. Anybody has an idea on how to make this work?
Today we start recieving this message when trying to deploy.
...
Scanned 8750 files.
Scanned 9000 files.
Scanned 9250 files.
Scanned 9500 files.
Scanned 9750 files.
Initiating update.
Cloning 711 static files.
Cloning 9233 application files.
Cloned 2000 files.
Cloned 4000 files.
Cloned 6000 files.
Cloned 8000 files.
Deploying:
Uploading 0 files.
Initializing precompilation...
Deploying new version.
Rolling back the update.
com.google.appengine.tools.admin.HttpIoException: Error posting to URL: https://appengine.google.com/api/appversion/deploy?app_id=facturanube&version=1&
500 Internal Server Error
<h3>Server Error</h3><p>A server error has occurred.</p>
Debugging information may be found in C:\Users\usuario\AppData\Local\Temp\appengine-deploy6314649189927600314.log
Debugging information file contents:
Unable to update:
com.google.appengine.tools.admin.HttpIoException: Error posting to URL: https://appengine.google.com/api/appversion/deploy?app_id=si-nube&version=1&
500 Internal Server Error
<h3>Server Error</h3><p>A server error has occurred.</p>
at com.google.appengine.tools.admin.AbstractServerConnection.send1(AbstractServerConnection.java:303)
at com.google.appengine.tools.admin.AbstractServerConnection.send(AbstractServerConnection.java:254)
at com.google.appengine.tools.admin.AbstractServerConnection.post(AbstractServerConnection.java:233)
at com.google.appengine.tools.admin.LoggingClientDeploySender.send(LoggingClientDeploySender.java:47)
at com.google.appengine.tools.admin.AppVersionUpload.send(AppVersionUpload.java:1100)
at com.google.appengine.tools.admin.AppVersionUpload.deploy(AppVersionUpload.java:949)
at com.google.appengine.tools.admin.AppVersionUpload.commit(AppVersionUpload.java:850)
at com.google.appengine.tools.admin.AppVersionUpload.uploadFilesTransaction(AppVersionUpload.java:176)
at com.google.appengine.tools.admin.AppVersionUpload.doUpload(AppVersionUpload.java:151)
at com.google.appengine.tools.admin.AppAdminImpl.doUpdate(AppAdminImpl.java:474)
at com.google.appengine.tools.admin.AppAdminImpl.update(AppAdminImpl.java:55)
at com.google.appengine.eclipse.core.proxy.AppEngineBridgeImpl.deploy(AppEngineBridgeImpl.java:400)
at com.google.appengine.eclipse.core.deploy.DeployProjectJob.runInWorkspace(DeployProjectJob.java:148)
at org.eclipse.core.internal.resources.InternalWorkspaceJob.run(InternalWorkspaceJob.java:38)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
Important considerations:
The appengine-web.xml file has no errors.
We tried deploying in different versions with no success.
The application can be deployed in another appengine application, but not in our production application.
We have no cuota-related problems. Our payments have no
problems.
Our current versions:
GWT SDK 2.4.0
App Engine 1.9.54
Java 7
Update
I was able to deploy today (2018/03/18) with no changes to code or configuration files. I guess Google did something to solve the issue.
500 A server error has occurred on deployment is usually related to malformed configs, including app.yaml and cron.yaml (and Java equivalents). Or if unsupported stanzas are included. Please check your GAE app configs and attempt to strip them down to the essentials just to narrow down which stanzas/flags are messing up the deployment.
Test execution stops after 2-3 hours on iOS 11 devices. The same setup works fine for iOS 10 devices.
gems being used -
run_loop - 2.6.1/2.6.0/2.5.4
calabash-cucumber - 0.21.1/0.20.5
cucumber - 3.0.0.pre.2
Xcode - 9
iOS - 11.0/11.0.1/11.0.2
Below is the error message -
Could not install /Users/raenug001c/.rvm/gems/ruby-2.3.1#ios11test/gems/run_loop-2.6.1/lib/run_loop/device_agent/ipa/DeviceAgent-Runner.app. iOSDeviceManager says:
Error getting device with ID 630826b68345ba162bc2494709ff39657dd3c122: Error Domain=com.facebook.FBControlCore Code=0 “Failed to load device console entries” UserInfo={NSLocalizedDescription=Failed to load device console entries}
install <app-path>
-d,--device-id <device-identifier> iOS Simulator GUID or 40-digit physical device ID
-u,--update-app <should-update-app> [OPTIONAL] When true, will reinstall the app if the device contains an older version than the bundle specified DEFAULT=1
-p,--profile-path <profile-path> [OPTIONAL] Path to provisioning profile
-c,--codesign-identity <codesign-identifier> [OPTIONAL] Identity used to codesign app bundle [device only]. Deprecated - should use profile path. DEFAULT=
-i,--resources-path <resources-path> [OPTIONAL] Path to resources (executables) to inject into app directory. A list of colon separated files may be specified.
(RuntimeError)
/Users/raenug001c/Documents/testios11/tvx-mobile-automation/iOS/common/support/01_launch.rb:49:in `Before’
Only after the restarting the device, the tests can be executed further.
After further debugging the issue, seems like iOSDeviceManager is unable to install/launch device agent app on the device. Unable to view the source code for iOSDeviceManager, hence not able to debug further.
I tried deleted Google Cloud AppEngine SDK from macbook, but I'm getting this
Last login: Thu Aug 11 14:12:18 on ttys002
-bash: /Users/Squirrel/Desktop/google-cloud-sdk/path.bash.inc: No such file or directory
-bash: /Users/Squirrel/Desktop/google-cloud-sdk/completion.bash.inc: No such file or directory
Whenever I open a new terminal window. Is there a way I can stop that from happening?
Converting the comment to an anwer...
Some SDK installations may modify system or user profiles to include proper setup of the SDK environment.
First thing to check, if the user didn't log out from the system since the uninstall, is if the errors are not just side effects of the current user session which already picked up the SDK environment. Logging out and back in should take care of such cases.
If the errors messages persist after logging out/in indicates that the removal of the installation did not clean up the system or user profiles modified at SDK installation, manual cleanup being required.
In your case the errors come from bash, so the files to check are either /etc/bash* or ~/.bash* - look for /Users/Squirrel/Desktop/google-cloud-sdk - the now-removed SDK installation path mentioned in the messages.
I'm trying to deploy an app to App Engine using a Docker container (I'm running on Mac). The project has no instance initially.
These are the versions I have:
docker v1.6.2
boot2docker v1.6.2
GCloud SDK v0.9.61
My Docker container runs fine locally (with docker run or with gcloud preview app run which probably means that my Dockerfile and app.yml are fine).
When trying to deploy it to production using gcloud preview app deploy app.yml, the server responds with a Bad Request.
Updating module [default]...|Pushing image to Google Container Registry...
Updating module [default].../The push refers to a repository [gcr.io/_m_sdk/dreamyproject.default.20150521t230120] (len: 1)
Sending image list
Updating module [default]...-Pushing repository gcr.io/_m_sdk/dreamyproject.default.20150521t230120 (1 tags)
Image 5c5e3f8382f6 already pushed, skipping
[...]
Image de8576728671 already pushed, skipping
Updating module [default]...\Image 4579da2d2faf already pushed, skipping
Image ad7184108492 already pushed, skipping
[...]
Image 369d7ef21685 already pushed, skipping
Pushing
Buffering to disk: 15.65 MB.|Buffering to disk: 557.1 kB
Image successfully pushed...|Pushing: [==================================================>] 15.65 MB/15.65 MB
Pushing
Updating module [default]...-Buffering to disk: 557.1 kB
Image successfully pushed...-Pushing: [==================================================>] 121.7 MB/121.7 MB
Pushing tag for rev [6de771c3b6c4] on {https://gcr.io/v1/repositories/_m_sdk/dreamyproject.default.20150521t230120/tags/latest}
Updating module [default]...done.
ERROR: (gcloud.preview.app.deploy) Server responded with code [400]:
Bad Request Unexpected HTTP status 400
Did I forget to do something in the google developer console or anything ?
edit: deploying to a fresh project worked. I still don't know about the bad request though.
edit 2: after playing around a bit, I think it could be due (the bad request) to selecting EU servers when creating the project.
edit 3: Error details. The thing that seems weird is the expiration date. DEBUG: Unexpected results: {'status': '400', 'alternate-protocol': '443:quic,p=1', 'content-length': '73', 'expires': 'Fri, 01 Jan 1990 00:00:00 GMT', 'server': 'Google Frontend', 'cache-control': 'no-cache', 'date': 'Sat, 23 May 2015 11:49:41 GMT', 'content-type': 'text/plain'}
edit 4: According to this thread, Managed VMs are not available in EU projects. This should be why.
According to this thread, Managed VMs are not available in EU projects yet. This should be why.
Ryan (Cloud Platform Support) - 26/05/15
[...] Managed VM's are currently only available in US projects [...]
(update) Now on the official documentation:
While in Beta, United States only. European Union-hosted applications should not deploy apps to the flexible environment.