Skip to content

Failed to set placeholder attributtesΒ #332

@irvine5k

Description

@irvine5k

Version

onesignal_flutter: 2.6.1

Description

When configure CFBundleVersion at One Signal info.plist to get FLUTTER_BUILD_NUMBER build fails.

CFBundleShortVersionString with FLUTTER_BUILD_NAME works. Also the same env variables at the Runner info.plist works.

With this error I have to change the version at each new deploy.

Error

Unable to install /Users/x/x/app-flutter/build/ios/iphonesimulator/Runner.app on CA3FED41-0DEB-4FA6-93E2-6941E27A5AB4. This is sometimes caused by a malformed plist file:
ProcessException: Process exited abnormally:
An error was encountered processing the command (domain=IXErrorDomain, code=2):
Failed to create plugin placeholder for /Users/x/x/app-flutter/build/ios/iphonesimulator/Runner.app/PlugIns/OneSignalNSE.appex
Failed to create promise.
Underlying error (domain=IXErrorDomain, code=2):
	Failed to set placeholder attributes com.cingulo.app.OneSignalNSE
	Failed to create promise.
  Command: xcrun simctl install CA3FED41-0DEB-4FA6-93E2-6941E27A5AB4 /Users/x/x/app-flutter/build/ios/iphonesimulator/Runner.app
Error launching application on iPhone SE (2nd generation).

Keys at plist

<key>CFBundleShortVersionString</key>
<string>$(FLUTTER_BUILD_NAME)</string>
<key>CFBundleVersion</key>
<string>$(FLUTTER_BUILD_NUMBER)</string>

Xcode

image


Podfile

target 'OneSignalNSE' do
  use_frameworks!
  pod 'OneSignal', '>= 2.15.2', '< 3.0'
end

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions