Not working on ios simulator (simulator bug ???)

From yesterday, it’s not working on ios simulator with debug mode. It looks, some errors occurs after launch app on simulator, then the app runs scripts with release (published) mode.

Does anyone know what means error messages below?

[more info]

  • it’s a detached project (from few months ago)
  • upgrading expo sdk v26 → v27 is worked.
  • only problem on ios (android is fine)

[logs on xcode]

2018-05-23 09:53:33.553304+0900 coinplay[50591:423524] Falling back to loading access token from NSUserDefaults because of simulator bug
2018-05-23 09:53:33.553435+0900 coinplay[50591:423524] Falling back to storing access token in NSUserDefaults because of simulator bug
2018-05-23 09:53:33.558865+0900 coinplay[50591:423524] Falling back to loading access token from NSUserDefaults because of simulator bug
2018-05-23 09:53:33.559009+0900 coinplay[50591:423524] Falling back to storing access token in NSUserDefaults because of simulator bug
2018-05-23 09:53:33.559808+0900 coinplay[50591:423524] Falling back to loading access token from NSUserDefaults because of simulator bug
2018-05-23 09:53:33.559955+0900 coinplay[50591:423524] Falling back to storing access token in NSUserDefaults because of simulator bug
2018-05-23 09:53:33.623017+0900 coinplay[50591:423524] Expo iOS Runtime Version 2.4.4
2018-05-23 09:53:33.628553+0900 coinplay[50591:423658] Expo Remote Notification services won't work in an ExpoKit app because Expo cannot manage your APNS certificates.
2018-05-23 09:53:33.838947+0900 coinplay[50591:423524] [LayoutConstraints] Unable to simultaneously satisfy constraints.
	Probably at least one of the constraints in the following list is one you don't want. 
	Try this: 
		(1) look at each constraint and try to figure out which you don't expect; 
		(2) find the code that added the unwanted constraint or constraints and fix it. 
(
    "<NSLayoutConstraint:0x60800009b8f0 UIImageView:0x7fb20a10b660.height == 128   (active)>",
    "<NSLayoutConstraint:0x60000009db00 V:|-(>=0)-[UIImageView:0x7fb20a10b660]   (active, names: '|':UIView:0x7fb207c0fee0 )>",
    "<NSLayoutConstraint:0x60000009dba0 V:[UIImageView:0x7fb20a10b660]-(10)-[UIView:0x7fb207c0fee0]   (active)>"
)

Will attempt to recover by breaking constraint 
<NSLayoutConstraint:0x60800009b8f0 UIImageView:0x7fb20a10b660.height == 128   (active)>
.....

[Podfile]

source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '9.0'

target 'coinplay' do
  pod 'ExpoKit',
    :git => "http://github.com/expo/expo.git",
    :tag => "ios/2.5.10",
    :subspecs => [
      "Core",
      "CPP",
      "GL"
    ]

  pod 'React',
    :path => "../node_modules/react-native",
    :subspecs => [
      "Core",
      "ART",
      "RCTActionSheet",
      "RCTAnimation",
      "RCTCameraRoll",
      "RCTGeolocation",
      "RCTImage",
      "RCTNetwork",
      "RCTText",
      "RCTVibration",
      "RCTWebSocket",
      "DevSupport",
      "CxxBridge"
    ]
  pod 'yoga',
    :path => "../node_modules/react-native/ReactCommon/yoga"
  pod 'DoubleConversion',
    :podspec => "../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec",
    :inhibit_warnings => true
  pod 'Folly',
    :podspec => "../node_modules/react-native/third-party-podspecs/Folly.podspec",
    :inhibit_warnings => true
  pod 'glog',
    :podspec => "../node_modules/react-native/third-party-podspecs/glog.podspec",
    :inhibit_warnings => true


  pod 'RNFS', :path => '../node_modules/react-native-fs'

  pod 'RNZipArchive', :path => '../node_modules/react-native-zip-archive'

  # Required by RNFirebase
  pod 'Firebase/Core', '~> 4.13.0'
  pod 'Firebase/Auth', '~> 4.13.0'
  pod 'Firebase/Messaging', '~> 4.13.0'

  post_install do |installer|
    installer.pods_project.main_group.tab_width = '2';
    installer.pods_project.main_group.indent_width = '2';

    installer.pod_targets.each do |target|

    if target.pod_name == 'ExpoKit'
      target.native_target.build_configurations.each do |config|
        config.build_settings['GCC_PREPROCESSOR_DEFINITIONS'] ||= ['$(inherited)']
        config.build_settings['GCC_PREPROCESSOR_DEFINITIONS'] << 'EX_DETACHED=1'
        
        # needed for GoogleMaps 2.x
        config.build_settings['FRAMEWORK_SEARCH_PATHS'] ||= []
        config.build_settings['FRAMEWORK_SEARCH_PATHS'] << '${PODS_ROOT}/GoogleMaps/Base/Frameworks'
        config.build_settings['FRAMEWORK_SEARCH_PATHS'] << '${PODS_ROOT}/GoogleMaps/Maps/Frameworks'
      end
    end


    if ['Amplitude-iOS','Analytics','AppAuth','Branch','CocoaLumberjack','FBSDKCoreKit','FBSDKLoginKit','FBSDKShareKit','GPUImage','JKBigInteger2'].include? target.pod_name
      target.native_target.build_configurations.each do |config|
        config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '9.0'
      end
    end
    # Build React Native with RCT_DEV enabled
    next unless target.pod_name == 'React'
    target.native_target.build_configurations.each do |config|
      config.build_settings['GCC_PREPROCESSOR_DEFINITIONS'] ||= ['$(inherited)']
      config.build_settings['GCC_PREPROCESSOR_DEFINITIONS'] << 'RCT_DEV=1'
    end

    end
  end
end

[app.json]

{
  "expo": {
    ...
    "sdkVersion": "27.0.0",
    ...
    "updates": {
      "enabled": false,
      "checkAutomatically": "ON_ERROR_RECOVERY"
    },
    "assetBundlePatterns": [
      "**/*"
    ],
    "ios": {
      "bundleIdentifier": "com.madtail.coinplay",
      "supportsTablet": true,
      "icon": "./assets/images/icons/ios/app_1024x1024.png",
      "publishBundlePath": "ios/coinplay/Supporting/shell-app.bundle",
      "publishManifestPath": "ios/coinplay/Supporting/shell-app-manifest.json",
      "config": {
        "googleSignIn": {
          "reservedClientId": "..."          
        }
      }
    },
    "android": {
      "package": "com.madtail.coinplay",
      "versionCode": 17,
      "publishBundlePath": "android/app/src/main/assets/shell-app.bundle",
      "publishManifestPath": "android/app/src/main/assets/shell-app-manifest.json",
      "config": {
        "googleSignIn": {
          "apiKey": "...",
          "certificateHash": "..."
        }
      }
    },
    "facebookScheme": "fb...",
    "facebookAppId": "...",
    "facebookDisplayName": "...",
    "extra": {
      "amplitudeApiKey": "...",
      ...
    },
    "isDetached": true,
    "detach": {
      ...
    }
  }
}

[package.json]

{
  "main": "node_modules/expo/AppEntry.js",
  "private": true,
  "scripts": {
    "test": "node ./node_modules/jest/bin/jest.js --watch",
    "postinstall": "node ./node_modules/rn-nodeify/cmd --install fs,path --hack"
  },
  "jest": {
    "preset": "jest-expo"
  },
  "dependencies": {
    "@expo/samples": "2.1.1",
    "@expo/vector-icons": "^6.2.2",
    "assert": "^1.4.1",
    "async": "^2.6.0",
    "asyncstorage-down": "^3.0.1",
    "base-64": "^0.1.0",
    "buffer": "^5.1.0",
    "currency-symbol-map": "^4.0.4",
    "events": "^1.1.1",
    "ex-react-native-i18n": "0.0.4",
    "expo": "^27.0.2",
    "lodash": "^4.17.4",
    "madtail_js_common": "git://github.com/yangga/madtail_js_common.git",
    "md5": "^2.2.1",
    "moment": "^2.19.3",
    "numeral": "^2.0.6",
    "path-browserify": "0.0.0",
    "prop-types": "^15.6.1",
    "react": "16.3.1",
    "react-native": "https://github.com/expo/react-native/archive/sdk-27.0.2.tar.gz",
    "react-native-calendars": "git://github.com/yangga/react-native-calendars.git",
    "react-native-easy-toast": "^1.0.9",
    "react-native-elements": "^0.18.4",
    "react-native-firebase": "^3.3.1",
    "react-native-fs": "^2.9.11",
    "react-native-level-fs": "^3.0.0",
    "react-native-masked-text": "^1.6.5",
    "react-native-modal-activityindicator": "0.0.1",
    "react-native-modal-dropdown": "^0.5.0",
    "react-native-modal-filter-picker": "^1.3.2",
    "react-native-socket.io-client": "^1.4.8",
    "react-native-status-bar-height": "^1.0.1",
    "react-native-sync-localstorage": "^0.0.3",
    "react-native-tab-view": "0.0.73",
    "react-native-vector-icons": "^4.5.0",
    "react-native-zip-archive": "^2.2.1",
    "react-navigation": "1.5.11",
    "react-navigation-actions": "^1.0.0",
    "react-navigation-redux-helpers": "^1.0.1",
    "react-redux": "^5.0.6",
    "redux": "^3.7.2",
    "redux-logger": "^3.0.6",
    "redux-thunk": "^2.2.0",
    "rn-expo-firebase-auth": "^0.0.3",
    "rn-nodeify": "^10.0.0",
    "stream": "0.0.2",
    "victory-native": "^0.15.0"
  },
  "devDependencies": {
    "babel-cli": "^6.26.0",
    "babel-core": "^6.26.0",
    "babel-preset-env": "^1.6.1",
    "babel-preset-expo": "^4.0.0",
    "babel-preset-stage-1": "^6.24.1",
    "eslint-plugin-react-native": "^3.2.0",
    "jest-expo": "^27.0.0",
    "redux-devtools": "^3.4.1",
    "request": "^2.83.0",
    "require-from-string": "^2.0.1"
  },
  "react-native": {
    "path": "path-browserify",
    "fs": "react-native-level-fs"
  },
  "browser": {
    "path": "path-browserify",
    "fs": "react-native-level-fs"
  }
}

Is it possible to post your whole project? Either a link to the source on Github or as a .zip file or something?
It’s hard to figure out what’s going on without that.

I’m sorry i can’t share my source codes because it’s a official project…

@yangga - time to create a mcve (How to create a Minimal, Reproducible Example - Help Center - Stack Overflow)

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.