After adding Notification Extension, my apple pay and push notifications for fastlane stopped working

I am using fastlane to create and submit an application to testflight. Everything worked until I added Notification Content Extension and Notification Service Extension. Now apple pay and push notifications stopped working when building via fastlane.
**
My config file:**

lane :beta do
  api_key = get_api_key()

  build_no = ENV["CIRCLE_BUILD_NUM"]

  changelog = File.read("./release_notes.txt")

  prepare()

  provision = get_provisioning_profile(
    fail_on_name_taken: false,
    skip_install: false,
    api_key: api_key,
    filename: 'AppStore_' + ENV["BUNDLE_ID"] + '.mobileprovision',
    force: true
  )

  provision_name = lane_context[SharedValues::SIGH_NAME]

  update_code_signing_settings(profile_name: provision_name, use_automatic_signing: false)

  build_application()

  enable_automatic_code_signing(path: "./app.xcodeproj")

  upload_to_testflight(
    api_key: api_key,
    skip_waiting_for_build_processing: true,
    changelog: changelog
  )

  after_all do |lane|
    # This block is called, only if the executed lane was successful
    notification(message: "Release iOS beta finished")
  end

  error do |lane, exception|
    notification(message: "Release iOS beta error")
  end
end


lane :build_application do
    sync_code_signing(type: "appstore")  # see code signing guide for more information

    build_app(
        scheme: "app",
        export_method: "app-store",
        clean: true,
        configuration: "app",
        skip_codesigning: true,
        export_team_id: ENV["TEAM_ID"],
        export_xcargs: "-allowProvisioningUpdates",
        skip_package_ipa: false,
        # entitlements: "./app/app.entitlements",
        export_options: {
            provisioningProfiles: {
                 ENV["BUNDLE_ID"] + ".extension1" => "match AppStore " + ENV["BUNDLE_ID"] + ".extension1",
                 ENV["BUNDLE_ID"] + ".extension2" => "match AppStore " + ENV["BUNDLE_ID"] + ".extension2",
                 ENV["BUNDLE_ID"] => "match AppStore " + ENV["BUNDLE_ID"]
            },
        }
    )
end

lane :code_signing do
    update_code_signing_settings(
      use_automatic_signing: false,
      path: "./app.xcodeproj",
      targets: ["extension1"],
      team_id: "0000",
      profile_name: ENV["BUNDLE_ID"] + ".extension1"
    )
    update_code_signing_settings(
      use_automatic_signing: false,
      path: "./app.xcodeproj",
      targets: ["extension2"],
      team_id: "0000",
      profile_name: ENV["BUNDLE_ID"] + ".extension2"
    )
end

After adding two extensions (Notification Content Extension and Notification Service Extension), the standard build via Fastlane stopped working, because these two extensions need to be signed additionally.

After signing the extensions, the Fastlane build started working. But push and apple pay stopped working

As it turned out, the extensions were not signed. As a consequence, Apple Pay and Pushes don’t work (example of Pushes error: ITMS-90078: Missing Push Notification Entitlement – Your app appears to register with the Apple Push Notification service, but the app signature’s entitlements do not include the ‘aps-environment’ entitlement).

We generated the entitlement file using Fastlane, put it in the root of the iOS project directory, where the file should be. We tried to build the app through Fastlane. As a result, Apple Pay and Pushes did not subscribe.

We also tried to slip a link to the custom entitlement manually in Fastlane, but Apple Pay and Pushes didn’t fix it.

New contributor

mike is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.

Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa Dịch vụ tổ chức sự kiện 5 sao Thông tin về chúng tôi Dịch vụ sinh nhật bé trai Dịch vụ sinh nhật bé gái Sự kiện trọn gói Các tiết mục giải trí Dịch vụ bổ trợ Tiệc cưới sang trọng Dịch vụ khai trương Tư vấn tổ chức sự kiện Hình ảnh sự kiện Cập nhật tin tức Liên hệ ngay Thuê chú hề chuyên nghiệp Tiệc tất niên cho công ty Trang trí tiệc cuối năm Tiệc tất niên độc đáo Sinh nhật bé Hải Đăng Sinh nhật đáng yêu bé Khánh Vân Sinh nhật sang trọng Bích Ngân Tiệc sinh nhật bé Thanh Trang Dịch vụ ông già Noel Xiếc thú vui nhộn Biểu diễn xiếc quay đĩa Dịch vụ tổ chức tiệc uy tín Khám phá dịch vụ của chúng tôi Tiệc sinh nhật cho bé trai Trang trí tiệc cho bé gái Gói sự kiện chuyên nghiệp Chương trình giải trí hấp dẫn Dịch vụ hỗ trợ sự kiện Trang trí tiệc cưới đẹp Khởi đầu thành công với khai trương Chuyên gia tư vấn sự kiện Xem ảnh các sự kiện đẹp Tin mới về sự kiện Kết nối với đội ngũ chuyên gia Chú hề vui nhộn cho tiệc sinh nhật Ý tưởng tiệc cuối năm Tất niên độc đáo Trang trí tiệc hiện đại Tổ chức sinh nhật cho Hải Đăng Sinh nhật độc quyền Khánh Vân Phong cách tiệc Bích Ngân Trang trí tiệc bé Thanh Trang Thuê dịch vụ ông già Noel chuyên nghiệp Xem xiếc khỉ đặc sắc Xiếc quay đĩa thú vị
Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa
Thiết kế website Thiết kế website Thiết kế website Cách kháng tài khoản quảng cáo Mua bán Fanpage Facebook Dịch vụ SEO Tổ chức sinh nhật